:root {
    /*Colores*/
    --color-background-dark: #06202B; /*Fondo principal, texto oscuro*/
    --color-text-light: #F5EEDD; /*Texto claro*/
    --color-background-light: #077A7D; /*Fondo secundario*/
    --color-accent-blue: #7AE2CF; /*Color de acento*/

    /*Fuentes*/
    --font-heading-primary: 'Exo 2', sans-serif; /*Para títulos principales*/
    --font-body: 'Open Sans', monospace; /*Para párrafos y texto general*/
}


/* Estilos Generales */
body {
    font-family: var(--font-body), monospace;
    margin: 0;
    line-height: 1.6;
    background-color: var(--color-background-dark); /*fondo pagina*/
    color: #F5EEDD; /*letra fondo*/
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading-primary), Arial, sans-serif; 
}

.container {
    width: 75%;
    margin: auto;
    overflow: hidden;
    padding: 50px 0;
}

/* Encabezado y Navegación */

.header {
    background-color: var(--color-background-light); /*barra de navegacion*/
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    min-height: 60px;
}

.nav {
    width: 80%;
    margin: 0 auto;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-responsivo {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    align-items: flex-end;
    display: flex;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
}
.nav-links a:hover, .nav-links a.active{
    color: var(--color-background-dark);
}

/* --- Botón de Menú Hamburguesa --- */
.menu-button {
    background-color: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    display: none;
    position: relative;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.menu-button svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-button .icon-menu {
    opacity: 1;
    transform: rotate(0deg);
}

.menu-button .icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

/* ESTADO: Cuando el botón tiene la clase 'menu-open' */
.menu-button.menu-open .icon-menu {
    opacity: 0;
    transform: rotate(180deg);
}

.menu-button.menu-open .icon-close {
    opacity: 1;
    transform: rotate(90deg);
}

/* Sección de Inicio (Hero) */
.hero {
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-light);
    padding-top: 60px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--color-text-light);
    color: var(--color-background-dark);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.video {
    position: relative;
    min-height: 50rem; 
    max-height: 70rem;
    overflow: hidden;
}

.video .overlay {
    position: absolute;
    background: linear-gradient(180deg, rgb(6, 32, 43, 0.1), rgb(6, 32, 43));
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

@media (min-width: 1200px) {
    .video video {
        width: 100%;
    }
}

.content-video {
  z-index: 10;
}

/* Secciones Generales */
.about{
    padding: 4rem 0;
    text-align: left;
}

.about h2, .services h2, .contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Sección de Nosotros */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(2rem, 1vw, 4rem);
    justify-items: center;
    align-items: stretch;
    width: 95%;
    margin: 0 auto;
}

.team-member {
    background: var(--color-background-light);
    border-radius: 1.5rem;
    box-shadow: 0 4px 34px rgb(245, 238, 221, 0.2);
    padding: clamp(2rem, 4vw, 3rem) 1rem clamp(2rem, 4vw, 2.5rem) 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    transform: scale(0.95);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px) scale(1);
    box-shadow: 0 8px 32px rgb(245, 238, 221, 0.2);
}

.team-member:hover .social-icon {
    opacity: 1;
    transform: translateY(0);
}

.team-member-img {
    width: clamp(120px, 14vw, 150px);
    height: clamp(120px, 14vw, 150px);
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--color-text-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.team-member h3 {
    margin: 0.5rem 0 0.2rem 0;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--color-text-light);
    font-family: var(--font-body), sans-serif;
    font-weight: 700;
}

.team-member p {
    margin: 0;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: #f5eeddc4;
    font-family: var(--font-body), sans-serif;
}

.social-icon {
    display: flex;
    margin-top: auto;
    padding-top: 1rem;
    gap: clamp(0.5rem, 1vw, 1rem);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 1300px) {
  .about-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-member {
    min-width: 180px;
    max-width: 340px;
    padding: 1.5rem 0.5rem;
  }
}

@media (max-width: 500px) {
  .about {
    padding: 1rem 0.5rem 2rem 0.5rem;
  }
  .about-gallery {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .team-member {
    min-width: 140px;
    max-width: 100%;
    width: 100%;
    padding: 1rem 0.2rem;
  }
  .team-description p {
    font-size: 1.7rem;
  }
}

/* Sección de Servicios */

.services {
    padding: 4rem 0;
    text-align: left;
    background-color: transparent;
}

.services-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: 85%;
    margin-top: 4rem;
    margin-left: auto;
    margin-right: 0;
}

.services-header {
    max-width: 50%;
    margin-bottom: 3rem;
    position: relative;
}

.services-header::before {
    content: '';
    position: absolute;
    background-color: var(--color-text-light);
    left: -35px;
    top: 5px;
    width: 4px;
    height: 90px;
}

/* Estructura vertical interna de cada tarjeta */
.service-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 30%;
}

.card-image {
    height: 200px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 0px 0px 0px 80px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.service-content p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.ctnt-button {
    background-color: transparent;
    color: var(--color-text-light);
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid var(--color-text-light);
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    margin-top: auto;
}

/* Seccion de nuestros prouctos */

.products {
    padding: 6rem 0;
    background-color: transparent;
    text-align: center;
}

/* Cabecera */
.products-header {
    max-width: 100%;
    margin: 0 0 4rem 0;
    text-align: left;
    position: relative; 
    padding-left: 25px;
}

.products-header::before {
    content: '';
    position: absolute;
    background-color: var(--color-accent-blue);
    left: 0;
    top: 45px;
    width: 4px;
    height: 55px;
}

.products-header .subtitle {
    color: var(--color-text-light);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.products-header h2 {
    font-size: 2.8rem;
    color: var(--color-text-light);
    margin: 0.5rem 0;
}

.products-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 65ch;
}

/* Contenedor de Tarjetas */
.product-cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.product-card {
    background-color: var(--color-text-light);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    text-align: left;
    flex: 1;
    max-width: 450px;
}

/* Estilos Tarjeta 1: App Móvil */
.app-card {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.app-image-placeholder {
    flex-shrink: 0;
    width: 150px;
    height: 100%;
    background-color: var(--color-background-light);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
}

.app-content .status-badge {
    background-color: var(--color-accent-blue);
    color: var(--color-background-dark);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.app-content h3 {
    color: var(--color-background-dark);
    margin: 0.75rem 0;
}

.app-content p {
    color: var(--color-background-dark);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.app-buttons {
    display: flex;
    gap: 0.75rem;
}

.store-button {
    background-color: var(--color-background-light);
    color: var(--color-text-light);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.store-button:hover {
    background-color: var(--color-accent-blue);
    color: var(--color-background-dark);
}

/* Estilos Tarjeta 2: Blog */
.blog-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.blog-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-text-light);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.blog-icon img {
    width: 100px;
    height: 75px;
}

.blog-card h3 {
    color: var(--color-background-dark);
    font-size: 1.8rem;
    margin: 0;
}

.blog-card p {
    color: var(--color-background-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.blog-button {
    background-color: var(--color-background-light);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    width: auto;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.blog-button:hover {
    background-color: var(--color-accent-blue);
    color: var(--color-background-dark);
}

/* Sección de Contacto */
.contact {
    padding: 11rem 0;
    background-color: transparent; 
}

.contact .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
}

.contact-info {
    width: 40%;
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.contact-info p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.contact-form {
    width: 50%;
    margin-top: 0rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--color-background-light);
    padding: 10px 0;
    color: var(--color-text-light);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.8s ease;
    resize: none;
    overflow-y: hidden;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--color-text-light);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(245, 238, 221, 0.5);
}

.contact-form .cta-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

#form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--color-background-light);
}

/* Pie de Página */
.footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    text-align: center;
    padding: 1rem 0;
}

/* Responsividad */
@media (max-width: 1100px) {
    .services-container {
        flex-direction: column;
        width: 100%;
        gap: 2.5rem;
    }

    .service-item {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 940px) {
    html {
    font-size: 15px; /* Reduce la base de 16px a 15px */
    }

    .about .container,
    .services-header,
    .products-header {
        text-align: center;
    }

    .team-description p {
        text-align: center;
    font-size: 1rem;
    }

    .about-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; /* Un espacio más pequeño entre tarjetas */
    }

    /* Ajusta el tamaño y contenido de las tarjetas */
    .team-member {
        padding: 1.5rem 0.5rem;
        gap: 0.5rem;
    }

    /* Oculta el rol 
    .team-member p {
        display: none;
    }*/

    /* Oculta las partes extra del nombre */
    .team-member .extra-name {
        display: none;
    }

    /* Asegura que los iconos de redes sociales siempre sean visibles */
    .social-icon {
        opacity: 1;
        transform: none;
        margin-top: 0.5rem;
    }

    .team-member-img {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }

    .team-member h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .services-header {
    max-width: 100%;
    margin-bottom: 2rem;
    }

    .services-header::before {
    height: 70px;
    }

    .services-container {
    flex-direction: column;
    width: 100%;
    margin-top: 2rem;
    }

    .service-item {
    max-width: 100%;
    }

    .service-content p {
        max-height: 2.6rem; /* Muestra aprox. 2 líneas */
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        margin-bottom: 1rem;
    }

    .service-content.expanded p {
    max-height: 10rem;
    }

    .ctnt-button::after {
    transition: transform 0.4s ease-in-out;
    }

    .service-content.expanded .ctnt-button::after {
    transform: rotate(-90deg);
    }

    .product-cards-container {
    flex-direction: column;
    align-items: center;
    }

    .contact .container {
    flex-direction: column;
    gap: 2rem;
    }

    .contact-info,
    .contact-form {
    width: 100%;
    text-align: center;
    }

    products-header h2 {
    font-size: 2rem;
    line-height: 0.8;
    }

    /* Asegura que el contenedor de tarjetas se apile verticalmente */
    .product-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .app-card {
        flex-direction: column;
        text-align: center;
    }

    .app-image-placeholder {
        width: 100%;
        height: 120px;
        margin-bottom: 1.5rem;
    }

    /* Centra los botones de la App Store */
    .app-buttons {
        justify-content: center;
    }

    .nav {
        width: 90%;
        padding: 0 1rem;
    }

    .nav-container {
        width: 100%;
    }

    .logo-responsivo {
        font-size: 1.3rem;
        gap: 0.5rem;
    }

    .menu-button {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        visibility: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease-out, opacity 0.4s ease-out, visibility 0.4s ease-out;

        flex-direction: column;
        width: 100vw;
        position: absolute;

        top: 60px;
        left: 50%;
        transform: translateX(-50%);

        background-color: var(--color-background-light);
        padding: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        z-index: 999;
        overflow: hidden;
    }

    .nav-links.open {
        visibility: visible;
        max-height: 300px;
        opacity: 1;
        padding: 1rem 0;
    }

    .nav-links li {
        margin-left: 0;
        padding: 0.8rem 0;
        text-align: center;
        width: 100%;

        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    }

    .nav-links.open li {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-links li:nth-child(1) {transition-delay: 0,1s;}
    .nav-links li:nth-child(2) {transition-delay: 0,2s;}
    .nav-links li:nth-child(3) {transition-delay: 0,3s;}
    .nav-links li:nth-child(4) {transition-delay: 0,4s;}

    .nav-links a {
        display: block;
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .service-cards {
        flex-direction: column;
    }
}