/* ------------------------- */
/* Estilos Globales y Body  */
/* ------------------------- */
:root {
    --color-primary: #5fabf7;
    --color-dark: #090808;
    --color-gray: #232323;
    --color-dark-gray: #1e1d1d;
    --color-light-gray: #f2f2f2;
    --color-text-special: #e0e0e0;
    --color-white: #ffffff;
    --font-main: "PT Sans", sans-serif;
    --header-height: 80px;
    --container-width: 1250px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 15px;
}

body {
    background-color: var(--color-dark);
    font-family: var(--font-main);
    color: var(--color-light-gray);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 400;
    text-align: left;
    margin-bottom: 20px;
    color: var(--color-white);
}

/* ------------------------- */
/* Header           */
/* ------------------------- */
.header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

.logo a img {
    height: 70px;
}

.nav-links {
    display: flex;
    list-style: none;
    width: 400px; 
    justify-content: space-between;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 400;
    font-size: 1rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--color-white);
}

/* ------------------------- */
/* Main                      */
/* ------------------------- */
main > section {
    padding: 40px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    background-color: var(--color-dark);
    position: relative;
}

main > section:not(:first-child) {
    margin-top: -60px;
}


/* Hero Section */
.hero {
    background: url('../images/fondo2.webp') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    margin-top: 0;
    max-width: 100%;
    background-color: transparent;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.hero-logo {
    width: 320px;
}

.hero-content p {
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--color-light-gray);
}

.social-icons {
    display: flex;
    gap: 25px;
}

.social-icons .icoSVG {
    width: 26px;
    height: 26px;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.social-icons a:hover .icoSVG {
    transform: scale(1.2);
}

/* Info Section (Mission/Vision) */
.info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.info-box {
    background-color: var(--color-dark);
    padding: 30px;
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.info-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--color-white);
    text-align: left;
    font-weight: 400;
}

.info-box p {
    font-size: 1rem; 
    line-height: 1.6;
    color: var(--color-text-special);
}


/* About Section */
.services-section {
    padding-bottom: 80px;
}

.containerAbout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.boxAbout {
    position: relative;
    height: 500px;
    flex: 1 1 320px;
    min-width: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    color: var(--color-white);
    display: flex;
    align-items: flex-end;
}

.boxAbout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.boxAbout::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
}

.boxContent {
    position: relative;
    padding: 30px;
    z-index: 3;
}

.subTitle {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.imgIconAboutBox {
    width: 26px;
    height: 26px;
    margin-right: 12px;
    filter: invert(1);
}

.boxContent .description {
    font-size: 1.1rem;
}

/* Services Section */
.servicesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.servicesBox {
    text-align: center;
    flex: 1 1 200px;
    background-color: var(--color-dark-gray);
    border-radius: 10px;
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicesBox:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.imgIconService {
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
    filter: invert(1);
}

.servicesBox .description {
    font-size: 1.0rem;
    font-weight: 400;
    color: var(--color-white);
}

.services-quote-link {
    text-align: center;
    margin-top: 30px;
}

.services-quote-link a {
    color: var(--color-primary);
    font-style: italic;
    font-size: 1.0rem;
}

.services-quote-link a:hover {
    color: var(--color-primary);
    font-style:normal;
    text-decoration: underline;
    font-size: 1.0rem;
}


/* Works Section (Slideshow) */
.slideshow-container {
    max-width: var(--container-width);
    position: relative;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
}

.mySlides {
    display: none;
}

.mySlides img {
    vertical-align: middle;
    width: 100%;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}
.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.numbertext {
  color: #f2f2f2;
  font-size: 0.8rem;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.text {
  color: #f2f2f2;
  font-size: 1rem;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}


.dots-container {
    text-align: center;
    padding-top: 20px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #717171;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--color-primary);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from { opacity: .4 }
    to { opacity: 1 }
}

/* ------------------------- */
/* Estilos del Modal         */
/* ------------------------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: var(--color-dark-gray);
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    color: var(--color-light-gray);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.modal-btn:hover {
    background-color: #135a96;
}

/* ------------------------- */
/* Footer          */
/* ------------------------- */
.footer {
    background-color: var(--color-dark-gray);
    padding: 40px 20px 0;
    max-width: 100%;
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 280px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-white);
    font-weight: 400;
}

.logo-col {
    flex-basis: 20%;
}
.footer-logo {
    max-width: 220px;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-light-gray);
}
.social-link:hover {
    color: var(--color-primary);
}

.social-icon-footer {
    filter: invert(1);
    width: 18px;
    height: 18px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
    font-size: 0.9rem;
    background-color: #444;
    color: var(--color-white);
}
.form-control::placeholder {
    color: #aaa;
}
.submit-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}
.submit-btn:hover {
    background-color: #135a96;
}

.copydev {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    color: #aaa;
}

/* --------------------------------- */
/* Estilos del Lightbox              */
/* --------------------------------- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 3000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);       
    justify-content: center;
    align-items: center;
    padding: 15px;
    user-select: none;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain; 
    transition: transform 0.3s ease; 
    cursor: zoom-in;
}

/* NUEVO: Clases de cursor para estado de zoom y paneo en ESCRITORIO */
.lightbox-content.zoomed {
    cursor: grab;
}

.lightbox-content.panning {
    cursor: grabbing;
}


.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    cursor: pointer;
}

.lightbox-close svg {
    width: 30px;
    height: 30px;
    fill: var(--color-white);
    transition: transform 0.3s ease;
}

.lightbox-close:hover svg {
    transform: scale(1.2) rotate(90deg);
}


/* ------------------------- */
/* Responsive Design         */
/* ------------------------- */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* ... resto de los estilos responsive sin cambios ... */
    
    .section-title {
        font-size: 1.25rem;  
        margin-bottom: 20px;
    }

    main > section {
        padding: 25px 20px;
    }

    main > section:not(:first-child) {
        margin-top: -30px;
    }

    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-dark);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease-in-out;
        justify-content: flex-start;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .hero-logo {
        width: 250px;
    }
    .hero-content p {
        font-size: 1rem;
    }
    
    .info-section {
        gap: 20px; 
        z-index: 3;
    }
    .info-box {
        padding: 20px;
        background-color: var(--color-dark-gray);
        border-radius: 10px;
    }
    .info-box h2 {
        text-align: center;
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    .info-box p {
        font-size: 1rem;
    }

    .boxContent {
        padding: 20px;
    }
    .boxAbout {
        height: 400px;
    }
    .subTitle {
        font-size: 1.15rem; 
        margin-bottom: 5px;
    }
    .boxContent .description {
        font-size: 1.05rem;
    }
    
    .services-section {
        padding-bottom: 25px;
    }
    .servicesContainer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .imgIconService {
        width: 30px;
        height: 30px;
        margin-bottom: 10px;
    }
    .servicesBox {
        padding: 17px 10px;
    }
    .servicesBox .description {
        font-size: 0.95rem;
        font-weight: 100;
    }
    .servicesBox:nth-child(5) {
        grid-column: 1 / -1;
    }
    .services-quote-link {
        margin-top: 20px;
    }
    .services-quote-link a {
        font-size: 0.95rem;
        font-style: normal;
    }

    .prev, .next {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        font-size: 1rem;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .dots-container {
        padding-top: 15px;
    }
    .dot {
        height: 9px;
        width: 9px;
        margin: 0 3px;
    }

    .modal-content {
        margin: 0 20px;
        padding: 30px 25px;
        font-size: 1.1rem;
    }

    .footer {
        padding: 30px 20px 0;
        margin-top: 10px;
        max-width: var(--container-width);
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 25px;
    }
    .footer-col.logo-col {
        display: none;
    }
    .footer-col {
        width: 100%;
        max-width: 400px;
    }
    .logo-col{
      display: none;
    }
    .footer-col h3 {
        text-align: left;
        font-size: 1.20rem;
        margin-bottom: 10px;
        font-weight: 500;
    }

    .form-col {
        padding: 0;
    }
    .social-link {
        justify-content: flex-start;
        font-size: 0.9rem;
    }
    .copydev {
        margin-top: 25px;
        font-size: 0.8rem;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
    }
    .lightbox-close svg {
        width: 25px;
        height: 25px;
    }
}