/* Variables */
:root {
    --primary-color: #305cde; /* Azul solicitado (principal) */
    --secondary-color: #305cde; /* Unificamos al mismo azul */
    --accent-color: #305cde; /* Unificamos al mismo azul */
    --chrome-gradient: linear-gradient(145deg, #E0E0E0, #BDBDBD, #E0E0E0);
    --text-color: #212121; /* Negro para texto, ligeramente más suave */
    --light-text: #ffffff; /* Blanco para texto sobre fondos oscuros */
    --bg-light: #ffffff; /* Fondo principal blanco */
    --bg-dark: #000000; /* Fondo oscuro (negro) */
    --bg-gray: #f5f5f5; /* Un gris muy claro para secciones */
    --bg-main: #000000; /* Fondo general negro */
    --border-color: #e0e0e0; /* Color de borde sutil */
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajustar según la altura del navbar */
}

body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Fuente principal para el cuerpo del texto */
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html, body { overflow-x: hidden; }

svg {
    fill: currentColor;
}

/* Estilos para todos los encabezados */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Fuente para encabezados */
}

#catalogo {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
}

#catalogo h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

iframe {
    border: 2px solid #ccc;
    border-radius: 5px;
}

/* Importar fuentes desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@500;700&display=swap');

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1280px; /* Un poco más ancho para diseños modernos */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y navegación */
header {
    background-color: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar {
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap; /* Evitar que el contenido del header se rompa en varias líneas */
    position: relative;
}

.logo { position: absolute; left: 20px; }
.logo img {
    max-height: 60px; /* Aumentar tamaño del logo en el header */
}
/* Logo junto al nombre en el header */
.logo a { display: inline-flex; align-items: center; gap: 10px; }

/* Texto de marca cuando no hay imagen de logo */
.logo .brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap; /* Mantener la marca en una sola línea */
    line-height: 1; /* Evitar crecimiento vertical por line-height */
}

/* Colores de marca (rojo y blanco) */
.brand-red { color: var(--primary-color); }
.brand-white { color: var(--light-text); }

/* Ajustes del brand en el hero */
.brand.brand-hero {
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
/* En el hero, mostrar Uptime en blanco */
.brand.brand-hero .brand-red { color: var(--light-text) !important; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: nowrap; /* Prevenir salto de línea y cambios de altura del header */
}

.nav-links a {
    color: var(--light-text);
    position: relative;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--light-text);
    position: absolute;
    right: 20px;
}

/* Hero background image as absolute background */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    min-height: 620px; /* Aumentar altura del área del carrusel */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Evitar saltos de ancho por el scrollbar (100vw) */
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;

    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.4,0.2,0.2,1);
    opacity: 0.5;
}

/* Carrusel en el hero */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none; /* No bloquear interacción con botones del hero */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 0.5; /* Coincidir con la intensidad del fondo anterior */
}

/* Animaciones al hacer scroll (reveal) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
    will-change: opacity, transform;
}
.reveal-on-scroll.reveal {
    opacity: 1;
    transform: none;
}

/* Aplicar suavemente a elementos comunes si se usan como reveal */
.service-item.reveal-on-scroll,
.about-minimal .container > *.reveal-on-scroll,
.hero .container > *.reveal-on-scroll,
.footer-content > *.reveal-on-scroll {
    transition: opacity 600ms ease, transform 600ms ease;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Evitar saltos de ancho por el scrollbar (100vw) */
    height: 100%;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 620px; /* Mantener contenido centrado con mayor altura */
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* FC-O SERVICES logo recreation */
.fc-logo-hero {
    display: block;
    text-align: left;
    line-height: 1;
    margin-bottom: 18px;
    margin-top: 0;
}
.fc-logo-hero .fc {
    font-size: 4.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--light-text);
    vertical-align: baseline;
}
.fc-logo-hero .o-hero {
    font-size: 2.1rem;
    font-weight: 700;
    display: inline-block;
    vertical-align: super;
    border-bottom: 6px solid #ffffff;
    color: var(--light-text);
    margin-left: 2px;
    margin-right: 8px;
    padding-bottom: 0.1em;
    line-height: 1;
    min-width: 1.2em;
    text-align: center;
}
.fc-logo-hero .services-hero {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: 0.18em;
    margin-top: 0.2em;
    margin-left: 0.1em;
    text-align: left;
}

.hero-subtitle,
.hero-description,
.hero-buttons {
    color: var(--light-text);
    position: relative;
    z-index: 2;
}

.hero-logo-img {
    max-width: 560px; /* Aumentar tamaño del logo en el hero */
    width: 90%;
    height: auto;
    margin: 0 auto 18px auto;
    display: block;
    z-index: 2;
    filter: none;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--light-text);
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1.25rem, 4.2vw, 2.6rem);
    max-width: 900px;
    display: block;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    font-weight: 700;
    white-space: normal;
    text-align: center;
    align-self: center;
}

@media (min-width: 769px) {
    .hero-description {
        white-space: nowrap;
        font-size: clamp(1.1rem, 2.8vw, 2rem);
        display: inline-block;
        max-width: none;
    }
}


.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Botón más destacado dentro del hero */
.hero .btn {
    font-size: 1.05rem;
    padding: 16px 36px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text) !important;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color); 
    color: var(--light-text) !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border-color: var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sección de servicios */
.services {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.services h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 70px;
    color: #000; /* Texto del título en negro */
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.services h2::after { /* Línea decorativa debajo del título */
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 20px auto 0;
}

.services-index {
    background-color: var(--bg-gray);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 70px;
}

.services-index ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.services-index a {
    padding: 15px 30px;
    color: var(--text-color);
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: inline-block;
    text-align: center;
    min-width: 200px;
}

.services-index a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.service-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Columnas responsivas */
    gap: 50px;
    margin-bottom: 80px;
    align-items: center; /* Centrar verticalmente imagen y texto */
    background: linear-gradient(145deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--primary-color);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* .service-item::before { Elemento decorativo lateral 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition); 
}

/* Estilos para el contenido del servicio */
.service-content {
    position: relative;
    padding-top: 80px; /* Reserva para futura imagen/logo */
    min-height: 340px; /* Más alto para acomodar imagen en el futuro */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrar verticalmente el bloque de texto */
}

.service-content .service-logo {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 70px;
    margin-bottom: 0;
}

/* Variante texto para logo en las tarjetas de servicio */
.service-content .service-logo.brand {
    position: absolute;
    top: 0;
    left: 0;
    font-weight: 700;
    font-size: 1.8rem; /* Más grande en servicios */
    line-height: 1;
    color: #000; /* Negro en servicios */
}

/* Forzar negro en subspans del brand dentro de servicios */
.service-content .service-logo.brand .brand-red,
.service-content .service-logo.brand .brand-white {
    color: #000 !important;
}

.service-content h3 {
    font-size: 2rem;
    margin: 10px 0 25px 0; /* Ajuste sin logo arriba */
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.service-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #555;
}

.service-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.service-content ul li {
    margin-bottom: 18px;
    position: relative;
    padding: 12px 16px 12px 40px;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.service-content ul li::before {
    content: none;
}

.service-content ul li:last-child {
    margin-bottom: 0;
}

.service-content ul li:hover {
    background-color: var(--primary-color);
    color: var(--light-text) !important;
    border-left-color: var(--accent-color);
}

/* Estilos para la imagen del servicio */
.service-image {
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: var(--bg-dark);
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Oculta partes de la imagen que se salgan */
    max-height: 400px; /* Altura máxima uniforme para las imágenes */
}

.service-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Ajusta la imagen para cubrir el espacio sin deformarse */
    margin: 0;
    padding: 0; 
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--light-text);
    padding: 80px 0 30px;
    text-align: center; /* Centrar contenido del footer */
}

/* Separador con imagen entre "Acerca de Nosotros" y el footer */
.section-separator { width: 100%; }
.section-separator-img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    text-align: center; /* Centrar texto dentro de las columnas */
}

/* Centrar el bloque de logo para alinear QR con la frase */
.footer-logo { text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer-logo .footer-tagline { text-align: center; display: inline-block; }
.footer-logo .footer-qr { margin-top: 6px; }

/* Imagen QR en el bloque de logo del footer */
.footer-logo .footer-qr {
    display: block;
    width: 160px;
    height: auto;
    margin: 10px auto 0; /* Centrada bajo el eslogan */
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.footer-logo img {
    max-width: 300px; /* Logo más grande en el footer */
    display: block;
    margin: 0 auto 15px; /* Centrar como la frase y el QR */
}

.footer-logo .brand {
    display: block;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--light-text);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap; /* Mantener en una sola línea */
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.footer-contact h3, .footer-social h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.85);
}

.footer-contact i {
    margin-right: 12px;
    color: var(--accent-color);
    font-size: 1.1rem;
    width: 20px; /* Para alinear iconos */
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center; /* Centrar iconos sociales */
}

.social-icons a {
    background-color: transparent;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Centrar bloques del footer */
.footer-contact,
.footer-social,
.footer-logo { text-align: center; }
.footer-contact p { justify-content: center; }

/* Efectos de revelación (si se usan) */

/* Botón de volver arriba */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .hero, .hero .container { min-height: 520px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .service-item {
        grid-template-columns: 1fr; /* Una columna en tablets */
    }
    .service-item:nth-child(even) .service-image {
        order: -1; /* Alternar imagen arriba/abajo en tablets si es 1 columna*/
    }
    .about-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "photo";
    }
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        text-align: center;
    }
    .footer-logo,
    .footer-contact,
    .footer-social {
        margin: 0 auto 30px; /* Centrar bloques del footer */
    }
    .social-icons {
        justify-content: center;
    }
    .footer-logo .footer-qr { width: 140px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px; /* Altura del navbar */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        background-color: var(--bg-dark);
        justify-content: center;
        padding: 40px 0;
        transition: left 0.4s ease-in-out;
        pointer-events: none; /* Evita que intercepte clics cuando está oculto */
        gap: 2rem;
    }
    
    .nav-links.active {
        left: 0;
    }

    .nav-links.active { pointer-events: auto; } /* Permite clics cuando está activo */
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .menu-btn {
        display: block;
    }
    
    .hero h1 { font-size: 1.6rem; }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    .btn {
        width: 70%;
        padding: 12px 25px;
    }
    .services h2, .about h2 {
        font-size: 2.2rem;
    }
    .service-content h3 {
        font-size: 1.6rem;
    }
    .hero-logo-img {
        max-width: 360px; /* Aumentar tamaño en pantallas pequeñas */
    }
    .hero, .hero .container {
        min-height: 420px;
        max-width: 98vw;
        padding: 0 10px;
    }
    .hero .container {
        align-items: center;
        text-align: center;
    }
    .hero-description {
        white-space: normal;
        text-align: center;
        margin: 0 auto 30px auto;
        align-self: center;
        max-width: 96vw;
    }
    .hero-logo-img {
        margin: 0 auto 18px auto;
        align-self: center;
    }
    .footer-logo img { max-width: 240px; }
    .footer-tagline { white-space: normal; max-width: 92vw; margin: 0 auto 20px; }
}
    /* Separador responsivo */
    .section-separator-img { height: 220px; }
    /* Ajuste de altura y espacio reservado en servicios (tablet) */
    .service-content {
        padding-top: 50px;
        min-height: 300px;
    }
    /* Footer brand responsive */
    .footer-logo .brand { font-size: 1.2rem; letter-spacing: 0.5px; }
    .fc-logo-hero .fc {
        font-size: 2.5rem;
    }
    .fc-logo-hero .o-hero {
        font-size: 1.2rem;
        border-bottom-width: 4px;
    }
    .fc-logo-hero .services-hero {
        font-size: 1rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "photo";
    }
    .about-text-wrapper { grid-row: 1; }
    .about-photo { grid-row: 2; }
    .about-content { gap: 40px; }
    .about-text-wrapper p { font-size: 1.1rem; }
    .about-photo img { max-width: 280px; }
    .about-ceo-name .ceo-name { font-size: 1.2rem; }
    .about-ceo-name .ceo-title { font-size: 0.95rem; }
    .about-minimal { padding: 60px 0 60px 0; }
    .about-text-wrapper { max-width: 92vw; }
    .about-minimal .container { max-width: 94vw; padding: 0 18px; }
}

@media (max-width: 576px) {
    .hero, .hero .container { min-height: 360px; }
    .container {
        padding: 0 15px;
    }
    .hero h1 { font-size: 1.4rem; }
    /* Footer brand responsive */
    .footer-logo .brand { font-size: 1.05rem; letter-spacing: 0.2px; }
    /* Separador responsivo */
    .section-separator-img { height: 180px; }
    .footer-logo .footer-qr { width: 120px; }
    /* Ajuste de altura y espacio reservado en servicios (mobile) */
    .service-content {
        padding-top: 30px;
        min-height: 260px;
    }
    .about-content { gap: 32px; }
    .about-text-wrapper p { font-size: 1rem; }
    .about-photo img { max-width: 240px; }
    .about-ceo-name .ceo-name { font-size: 1.1rem; }
    .about-ceo-name .ceo-title { font-size: 0.9rem; }
    .about-minimal { padding: 50px 0 50px 0; }
    .about-text-wrapper { max-width: 94vw; }
    .footer-logo img { max-width: 200px; }
    .footer-tagline { white-space: normal; max-width: 92vw; margin: 0 auto 16px; }
}

@media (max-width: 400px) {
    /* Footer brand responsive */
    .footer-logo .brand { font-size: 0.98rem; letter-spacing: 0.1px; }
    .hero-subtitle { font-size: 1rem; }
    .services-index { flex-direction: column; align-items: stretch; }
    .services-index a { text-align: center; width: 100%; }
    .service-item { padding: 30px 25px; }
    .footer-content { gap: 30px; }
    .about-content { gap: 24px; }
    .about-text-wrapper p { font-size: 0.95rem; }
    .about-photo img { max-width: 200px; }
    .about-ceo-name .ceo-name { font-size: 1rem; }
    .about-ceo-name .ceo-title { font-size: 0.85rem; }
}

/* Quitar efectos de imagen de JS si ya están controlados por CSS hover */
/* .service-img-effect {
    filter: grayscale(80%) brightness(0.9) contrast(1.1);
    transition: filter 0.5s ease;
}

.service-img-effect.img-hover {
    filter: grayscale(0%) brightness(1) contrast(1);
} */

.decorativo-icon {
    font-size: 1.75rem;
    margin-left: auto; /* Empuja el ícono a la derecha */
    transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
    pointer-events: none;
    /* Efecto rojo y negro */
    background: linear-gradient(145deg, var(--primary-color) 70%, var(--bg-dark) 30%);
    -webkit-background-clip: text;    background-clip: text;    color: transparent;
}

.service-content ul li:hover .decorativo-icon {
    transform: rotate(90deg);
}

body:not(.scrolled-hero) .hero-bg-img {
    transform: translateY(0) scale(1);
}

.about-minimal {
    background: var(--bg-dark);
    color: #fff;
    padding: 100px 0 90px 0;
    text-align: center;
}

.about-minimal .container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-title {
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 36px;
    color: #fff;
    text-transform: uppercase;
}

.about-highlight {
    color: var(--accent-color);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.about-text-minimal p {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    line-height: 1.8;
    color: #fff;
    margin-bottom: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "text"
        "photo";
    gap: 50px;
    align-items: center;
    justify-items: center;
}

.about-text-wrapper {
    text-align: center;
    grid-area: text;
    max-width: 800px;
    margin: 0 auto;
}

.about-photo {
    text-align: center;
    justify-self: center;
    grid-area: photo;
}

.about-text-wrapper p {
    text-align: center;
    overflow-wrap: anywhere;
}

.about-text-wrapper .about-quote {
    text-align: center;
}

.about-quote {
    white-space: normal;
    overflow-wrap: anywhere;
}

.about-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-width: clamp(180px, 50vw, 420px);
    border-radius: 0;
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    margin: 0 auto;
}

.about-ceo-name {
    margin-top: 12px;
    font-size: 1rem;
    color: #fff;
    opacity: 0.95;
    text-align: center;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.about-photo .about-qr {
    display: block;
    width: 96px;
    height: auto;
    margin: 10px auto 0;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.about-ceo-name .ceo-name {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 700;
}

.about-ceo-name .ceo-title {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    font-weight: 400;
}

.about-keyword {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.about-separator {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 40px auto 30px auto;
    border-radius: 2px;
    opacity: 0.8;
}

.about-ceo-separator {
    margin: 12px auto 16px auto;
}
.about-quote {
    font-size: 1.1rem;
    color: #fff;
    font-style: italic;
    opacity: 0.7;
    margin-top: 0;
    letter-spacing: 0.04em;
    white-space: normal;
}

.about-photo .about-quote {
    margin-top: 14px;
}
@media (max-width: 600px) {
    .about-title { font-size: 1.5rem; }
    .about-text-minimal p { font-size: 1rem; }
    .about-separator { margin: 30px auto 20px auto; }
    .about-quote { font-size: 0.95rem; letter-spacing: 0.02em; }
    /* Más margen lateral en móviles para el bloque Sobre Nosotros */
    .about-minimal .container { max-width: 90vw; padding: 0 24px; }
}

@media (max-width: 400px) {
    .about-quote { font-size: 0.9rem; }
}
