/* EMPRESA */
.empresa-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 40px 80px;
    flex: 1;
    width: 100%;
}

.empresa-hero-block {
    text-align: center;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.empresa-hero-block h1 {
    font-size: 42px;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #111;
    letter-spacing: 2px;
}

.empresa-hero-block p.lead {
    font-size: 22px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.empresa-hero-block p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* FOUNDERS */
.seccion-fundadores {
    margin-bottom: 100px;
    text-align: center;
}

.seccion-fundadores h2,
.alcance-block h2 {
    font-size: 32px;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: #111;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.seccion-fundadores h2::after,
.alcance-block h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #4285F4;
    /* Brand color */
    margin: 15px auto 0;
}

.fundadores-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.fundador-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s;
}

.fundador-card:hover {
    transform: translateY(-5px);
}

.fundador-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
    background: #f5f5f5;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
}

.fundador-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #111;
}

.fundador-card .cargo {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    color: #4285F4;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.fundador-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* VALUES & SCOPE */
.seccion-valores {
    background: #111;
    color: white;
    padding: 60px;
    border-radius: 12px;
    text-align: center;
}

.alcance-block {
    margin-bottom: 60px;
}

.alcance-block h2 {
    color: white;
}

.alcance-block p {
    font-size: 18px;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.valor-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.valor-item p {
    color: #aaa;
    font-size: 15px;
}

@media (max-width: 768px) {
    .fundadores-grid {
        flex-direction: column;
    }

    .seccion-valores {
        padding: 40px 20px;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    /* Update font */
}

html,
body {
    height: 100%;
    color: #333;
    line-height: 1.6;
    background-color: #fcfcfc;
    /* Subtle off-white bg */
    display: flex;
    flex-direction: column;
}

a {
    transition: color 0.3s ease;
}

/* ═══════════════════════════════════════
   HEADER — escritorio y móvil
   ═══════════════════════════════════════ */

/* Fija el header arriba */
.top-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Fila interior: logo — nav — idioma (— hamburguesa en móvil) */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 24px;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-link::after { display: none !important; }
.logo-img { height: 48px; width: auto; display: block; }

/* Grupo derecho (nav + idioma + hamburguesa) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

/* Nav horizontal — escritorio */
#main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
#main-nav a {
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}
#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: #dc2626;
    transition: width 0.25s ease;
}
#main-nav a:hover { color: #dc2626; }
#main-nav a:hover::after { width: 100%; }

/* Selector de idioma */
.idioma-wrapper {
    position: relative;
    color: #111;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    border-radius: 20px;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}
.idioma-wrapper:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.35);
}
.idioma-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    min-width: 80px;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    z-index: 300;
}
.idioma-wrapper:hover .idioma-dropdown { display: block; }
.idioma-dropdown a {
    display: block;
    padding: 9px 16px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    position: static;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.idioma-dropdown a:last-child { border-bottom: none; }
.idioma-dropdown a:hover { background: #f5f5f5; }
.idioma-dropdown a::after { display: none !important; }

/* Hamburguesa — solo móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* HERO */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("../imagenes/casa.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-texto {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.hero-texto h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.4);
}

.hero-texto p {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.8px;
    opacity: 0.85;
}

/* FOOTER */
.footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
    border-top: 1px solid #222;
}

.footer a {
    color: #fff;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.footer a:hover {
    color: #4285F4;
}

/* COMMON SECTION WRAPPER */
.proyectos,
.servicios-container,
.contacto-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 40px 80px;
    /* Unified padding */
    flex: 1;
    width: 100%;
    /* Ensure full width */
}

/* PROYECTOS GRID */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.proyecto {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
}

.proyecto:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.proyecto-img-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.proyecto-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.proyecto-img-wrapper:hover img {
    transform: scale(1.08);
    /* Smoother zoom */
}

.proyecto-info {
    padding: 25px;
    text-align: left;
}

.proyecto-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #111;
    font-weight: 600;
}

.proyecto-info p {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.proyecto-info a {
    font-size: 13px;
    color: #4285F4;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.proyecto-info a:hover {
    color: #0d5bdd;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.activo {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: #4285F4;
}

/* SERVICIOS */
.servicio-seccion {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.servicio-seccion:last-child {
    margin-bottom: 0;
}

.servicio-seccion.reverso {
    flex-direction: row-reverse;
}

.servicio-img {
    flex: 1;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.servicio-img:hover img {
    transform: scale(1.05);
}

.servicio-texto {
    flex: 1;
}

.servicio-texto h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.servicio-texto h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #4285F4;
    margin-top: 15px;
}

.servicio-texto div {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.servicio-texto ul {
    margin-top: 25px;
    list-style: none;
}

.servicio-texto ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #444;
}

.servicio-texto ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4285F4;
    font-weight: bold;
}

/* CONTACTO */
.contacto-header {
    text-align: center;
    margin-bottom: 70px;
}

.contacto-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #111;
    letter-spacing: 2px;
}

.contacto-header p {
    color: #666;
    font-size: 20px;
    font-weight: 300;
}

.contacto-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contacto-info-col,
.contacto-form-col {
    flex: 1;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.info-card h3 {
    margin-bottom: 25px;
    font-size: 24px;
    color: #111;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 15px;
}

.info-card p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
    font-size: 16px;
}

.info-card strong {
    color: #333;
}

.btn-mapa {
    display: inline-block;
    background: #4285F4;
    color: white !important;
    padding: 12px 25px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-mapa:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.mapa-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 350px;
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.form-contacto {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 16px;
    background: #fdfdfd;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4285F4;
    background: white;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.1);
    outline: none;
}

.btn-enviar {
    background: #111;
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-enviar:hover {
    background: #4285F4;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mensaje-exito,
.mensaje-error {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.mensaje-exito {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ─── SIDEBAR MÓVIL (siempre fuera del flow del header) ─── */
#nav-sidebar {
    display: none; /* oculto en escritorio */
}

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 140;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

/* ─── RESPONSIVE ≤900px ─── */
@media (max-width: 900px) {
    /* Header compacto */
    .top-header { height: 60px; }
    .nav-container { padding: 0 16px; gap: 0; }
    .logo-img { height: 38px; }
    .nav-right { gap: 8px; }

    /* Solo muestra el hamburger — oculta nav y selector de idioma */
    #main-nav      { display: none !important; }
    .idioma-wrapper { display: none !important; }
    .nav-toggle    { display: flex; }

    /* ── Sidebar deslizante ── */
    #nav-sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 270px;
        background: #111111;
        z-index: 150;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }
    #nav-sidebar.open { transform: translateX(0); }

    /* Cabecera del sidebar */
    .nav-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
    }
    .nav-sidebar-logo {
        height: 32px;
        width: auto;
        object-fit: contain;
        filter: brightness(0) invert(1);
        opacity: 0.9;
    }
    .nav-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.08);
        border: none;
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 16px;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        flex-shrink: 0;
    }
    .nav-sidebar-close:hover { background: rgba(220, 38, 38, 0.3); color: #fff; }

    /* Links del sidebar */
    .nav-sidebar-links {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .nav-sidebar-links a {
        color: rgba(255, 255, 255, 0.75);
        font-size: 13px;
        font-weight: 700;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        letter-spacing: 1.2px;
        text-transform: uppercase;
        white-space: nowrap;
        text-decoration: none;
        transition: background 0.2s, color 0.2s, padding-left 0.2s;
    }
    .nav-sidebar-links a:hover {
        background: rgba(220, 38, 38, 0.15);
        color: #fff;
        padding-left: 32px;
    }

    /* Selector de idioma en el sidebar */
    .nav-sidebar-lang {
        display: flex;
        gap: 8px;
        padding: 20px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
    }
    .nav-sidebar-lang a {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.6);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }
    .nav-sidebar-lang a:hover,
    .nav-sidebar-lang a.active {
        background: #dc2626;
        color: #fff;
    }

    /* Hero */
    .hero { padding-top: 60px !important; }
    .hero-texto h1 { font-size: 28px; letter-spacing: 2px; }
    .hero-texto p  { font-size: 15px; }

    /* Sections */
    .servicio-seccion,
    .servicio-seccion.reverso { flex-direction: column; gap: 40px; }
    .servicio-img { width: 100%; height: 280px; }
    .contacto-container { flex-direction: column; }
    .proyectos-grid { grid-template-columns: 1fr; }
}

/* FOOTER NEGRO */
.footer {
    background: black;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 14px;
}

.footer a:hover {
    text-decoration: underline;
}

/* PROYECTOS GRID */
.proyectos {
    padding: 120px 20px 50px;
    /* 70px header + 50px space */
    max-width: 1400px;
    margin: 0 auto;
}

.proyectos-grid {
    display: grid;
    /* 4 columns on large screens (~1200px+). minmax 280px allows 4 cols comfortably in 1400px */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.proyecto {
    /* Auto height to fit content */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: default;
    /* Cursor on image only */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    /* Card background */
    transition: transform 0.3s ease;
}

.proyecto:hover {
    transform: translateY(-5px);
}

.proyecto-img-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
}

.proyecto-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.proyecto-img-wrapper:hover img {
    transform: scale(1.05);
}

.proyecto-info {
    padding: 15px;
    text-align: left;
}

.proyecto-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.proyecto-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.proyecto-info a {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.proyecto-info a:hover {
    text-decoration: underline;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.activo {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
}

/* SERVICIOS */
.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 50px;
    /* Top padding for header */
}

.servicio-seccion {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.servicio-seccion:last-child {
    margin-bottom: 0;
}

.servicio-seccion.reverso {
    flex-direction: row-reverse;
}

.servicio-img {
    flex: 1;
    height: 400px;
    /* Fixed height for consistency */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servicio-img:hover img {
    transform: scale(1.05);
}

.servicio-texto {
    flex: 1;
}

.servicio-texto h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.servicio-texto div {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

.servicio-texto ul {
    list-style: none;
    margin-top: 15px;
}

.servicio-texto ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.servicio-texto ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    /* Bullet color */
    font-weight: bold;
}

/* Responsive Services */
@media (max-width: 768px) {

    .servicio-seccion,
    .servicio-seccion.reverso {
        flex-direction: column;
        gap: 30px;
    }

    /* CONTACTO */
    .contacto-wrapper {
        padding: 120px 20px 80px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .contacto-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .contacto-header h1 {
        font-size: 36px;
        margin-bottom: 15px;
        text-transform: uppercase;
    }

    .contacto-header p {
        color: #666;
        font-size: 18px;
    }

    .contacto-container {
        display: flex;
        gap: 50px;
        align-items: flex-start;
    }

    .contacto-info-col,
    .contacto-form-col {
        flex: 1;
    }

    .info-card {
        background: #f9f9f9;
        padding: 30px;
        border-radius: 8px;
        margin-bottom: 30px;
    }

    .info-card h3 {
        margin-bottom: 20px;
        font-size: 24px;
    }

    .info-card p {
        margin-bottom: 15px;
        line-height: 1.5;
        color: #444;
    }

    .info-card a {
        color: #007bff;
        text-decoration: none;
    }

    .btn-mapa {
        display: inline-block;
        background: #4285F4;
        color: white !important;
        padding: 10px 20px;
        border-radius: 4px;
        margin-top: 10px;
        font-weight: bold;
        transition: background 0.3s;
    }

    .btn-mapa:hover {
        background: #3367d6;
        text-decoration: none;
    }

    .mapa-container {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .form-contacto {
        background: white;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #333;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
        font-family: inherit;
        transition: border-color 0.3s;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #007bff;
        outline: none;
    }

    .btn-enviar {
        background: #333;
        color: white;
        padding: 15px 30px;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s;
        width: 100%;
    }

    .btn-enviar:hover {
        background: #000;
    }

    .mensaje-exito {
        background: #d4edda;
        color: #155724;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }

    .mensaje-error {
        background: #f8d7da;
        color: #721c24;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }

    @media (max-width: 768px) {
        .contacto-container {
            flex-direction: column;
        }

        .contacto-wrapper {
            padding-top: 100px;
        }
    }