/* ===== 1. IMPORTACIÓN DE FUENTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ===== 2. RESET Y BASE ===== */
* {
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
    background-color: #ffffff;
    color: #1a1a1a;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 3. HEADER Y NAVEGACIÓN ===== */
header {
    background-color: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.logo {
    font-weight: 900;
    color: #e2e3e5;
    letter-spacing: -0.5px;
}

.logo img {
    width: 5cm;
    height: auto;
    max-width: 100%;
    display: block;
}

.logo span {
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #e2e3e5;
}

.dark-mode-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #e2e3e5;
    margin-left: 1rem;
    transition: color 0.2s;
}

/* ===== 4. HERO Y CARRUSEL ===== */
.hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.carousel-btn, .lightbox-prev, .slider-btn ,
.lightbox-next  {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 8px;
    transition: background 0.3s;
}
/* Botones del slider */
.slider-btn {
    font-size: 1.8rem;
    width: 20px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Asegurar que el overlay del hero contenga todo el contenido y sea flex */
.hero-content-overlay {
    position: relative;
    z-index: 5;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Hero grid debe ocupar todo el ancho disponible */
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

/* Columna izquierda - texto institucional */
.hero-text {
    flex: 1;
    max-width: 550px;
    text-align: left;
    /* 👈 Alineado a la izquierda */
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: #F4F4F4;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    color: #F4F4F4;
}

/* Columna derecha - Tarjeta de obra (estilo INACAP) */
.hero-card {
    background: rgba(0, 0, 0, 0.75);
    /* Fondo negro semitransparente */
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 1.5rem;
    width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 2s ease;
}

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

.card-badge {
    display: inline-block;
    background-color: #FC8004;
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.hero-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: white;
}

.card-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.card-details i {
    width: 20px;
    font-size: 1rem;
}


@media (max-width: 768px) {
    .hero-grid {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-text,
    .hero-card {
        text-align: center;
        align-items: center;
    }

    .card-details p {
        justify-content: center;
    }

    .hero-content-overlay {
        min-height: auto;
        padding: 3rem 0;
    }
}

/* ===== 5. BOTONES ===== */
.btn {
    display: inline-block;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s, transform 0.1s;
    letter-spacing: 1px;
}

button[type="submit"] {
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.btn:hover, button[type="submit"]:hover {
    background-color: #cc6600;
    background-position: 100% 0;
    transform: translateY(-2px);
}

/* ===== 6. SECCIONES COMUNES ===== */
.section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.section-alt {
    background-color: #f4f4f6;
}

.section-title {
    font-size: 2.2rem;
    font-weight: bolder;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

/* ===== 7. QUIÉNES SOMOS ===== */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1.5;
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.values {
    flex: 1;
    padding: 1.8rem;
    border-radius: 24px;
    border: 4px solid #ffe1cf;
    border-top: 4px  solid #FC8004;
    box-shadow: 4px 8px 20px rgba(0,0,0, 0.4);
    background-color: #F5F5F4;
}

.values h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.value-item i {
    font-size: 1.6rem;
    min-width: 40px;
}

/* ===== 8. SERVICIOS ===== */
.services-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.card{
    border-radius: 28px;
    padding: 2rem 1.8rem;
    width: 280px;
    text-align: center;
    transition: transform 0.25s ease;
    border: solid 4px #ffe1cf;
    border-bottom: 4px solid #FC8004;
    box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.4);
    background-color: #fff;
}

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

.card i {
    font-size: 3rem;
    border: solid 4px #ffe1cf;
    color: #FC8004;
    margin-bottom: 1.2rem;
}

.card h3 {
    font-weight: 800;
}

.card p {
    color: #2c3e50;
}


/* ===== BOTÓN VER MÁS (ESTILO ENLACE) ===== */
.ver-mas-btn {
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    margin-top: 1rem;
    width: auto;
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: 'Montserrat', sans-serif;
    transition: opacity 0.2s ease;
}

.ver-mas-btn:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ===== NUEVA SECCIÓN CLIENTES AGRUPADA ===== */
.clientes-agrupados {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.grupo-cliente {
    background-color: #ffffff;
    border-radius: 28px;
    padding: 1.8rem 2rem;
    border: 4px solid #ffe1cf;
    border-top: 4px solid #FC8004;
    box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grupo-cliente:hover {
    transform: translateY(-3px);
    box-shadow: 6px 12px 28px rgba(0, 0, 0, 0.15);
}

.grupo-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #ffe1cf;
    letter-spacing: 0.5px;
}

.grupo-contenido {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* ===== ITEM DE CLIENTE ===== */
.cliente-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.6rem 0.8rem;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.cliente-item:hover {
    background: rgba(252, 128, 4, 0.06);
}

/* ===== WRAPPER DEL LOGO ===== */
.cliente-logo-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== LOGO CONFIGURACIÓN ===== */
.cliente-logo {
    width: 100%;
    max-width: 120px;
    height: 55px;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: grayscale(0%);
    transition: filter 0.3s ease, transform 0.2s ease, background 0.3s ease;
    
    /* Fondo semitransparente para visibilidad en modo oscuro */
    background-color: rgba(252, 128, 4, 0.3);
    padding: 6px 10px;
    border-radius: 12px;
    
    /* Sombra suave */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cliente-logo:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== INFO DEL CLIENTE ===== */
.cliente-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.cliente-nombre {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.cliente-proyecto {
    color: #465058;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ===== MODO OSCURO ===== */
body.dark-mode .grupo-cliente {
    background-color: #2a2f34;
    border: 4px solid #ffe1cf;
    border-top: 4px solid #FC8004;
    box-shadow: 0.5px 8px 20px rgba(255, 255, 255, 0.15);
}

body.dark-mode .grupo-titulo {
    color: #eaeef2;
    border-bottom-color: #ffe1cf;
}

body.dark-mode .cliente-item:hover {
    background: rgba(252, 128, 4, 0.15);
}

body.dark-mode .cliente-nombre {
    color: #eaeef2;
}

body.dark-mode .cliente-proyecto {
    color: #cfd8e6;
}

body.dark-mode .cliente-logo {
    background-color: rgba(255, 255, 255, 0.2);
    filter: brightness(0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cliente-logo:hover {
    background-color: rgba(255, 255, 255, 0.3);
    filter: brightness(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .grupo-cliente {
        padding: 1.2rem 1.2rem;
    }
    
    .cliente-item {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .cliente-logo-wrapper {
        width: 80px;
        height: 45px;
    }
    
    .cliente-logo {
        max-width: 80px;
        height: 40px;
        padding: 4px 6px;
        border-radius: 8px;
    }
    
    .cliente-info {
        width: 100%;
        padding-left: 0;
    }
    
    .cliente-nombre {
        font-size: 0.9rem;
    }
    
    .cliente-proyecto {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .grupo-cliente {
        padding: 0.8rem 1rem;
    }
    
    .cliente-logo-wrapper {
        width: 60px;
        height: 35px;
    }
    
    .cliente-logo {
        max-width: 60px;
        height: 32px;
        padding: 3px 5px;
        border-radius: 6px;
    }
    
    .grupo-titulo {
        font-size: 1rem;
    }
}
/* ===== SLIDER DE SERVICIOS ===== */
.servicios-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #555;
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    /* scrollbar-width: thin; */
    flex: 1;
    /* border-radius: 28px; */
}

.slider-wrapper::-webkit-scrollbar {
    height: 6px;
}

.slider-wrapper::-webkit-scrollbar-track {
    background: #e2e3e5;
    border-radius: 10px;
}

.slider-wrapper::-webkit-scrollbar-thumb {
    background: #FC8004;
    border-radius: 10px;
}

.servicios-slider {
    display: flex;
    gap: 2rem;
    padding: 1rem 0.5rem;
}

.servicio-card {
    flex: 0 0 300px;          /* Ancho fijo en desktop */
    background-color: #fff;
    border-radius: 28px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: solid 4px #ffe1cf;
    border-top: 4px solid #FC8004;
    box-shadow: 0.5px 8px 20px rgba(0,0,0, 0.4);
    text-align: center;
        /* NUEVO: Hacer que la tarjeta sea un contenedor flex en columna */
    display: flex;
    flex-direction: column;
  
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.servicio-imagen {
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 20px;
}

.servicio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.servicio-card:hover .servicio-imagen img {
    transform: scale(1.03);
}

.servicio-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem;
}

.servicio-card p {
    font-size: 0.9rem;
    color: #465058;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.servicio-boton {
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: gap 0.2s;
    display: inline-block;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    letter-spacing: 1px;  
    margin-top: auto;
    align-self: center;
}
/* ===== MODAL DE PROYECTOS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 1200px;
    border-radius: 28px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.modal-close:hover {
    background: linear-gradient(135deg,
        #8B3A00 0%,#A04500 20%,#CC6600 40%,#FFA500 50%,#CC6600 60%,
        #A04500 80%,#8B3A00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.modal-card {
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.modal-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.modal-card .caption {
    padding: 0.8rem;
    font-size: 0.85rem;
    color: #333;
    text-align: center;
    font-weight: 500;
}

/* Lightbox (imagen en grande) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    text-align: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    margin-top: 5vh;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    color: white;
    font-size: 1rem;
    background: rgba(0,0,0,0.6);
    padding: 0.8rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover {
    background: linear-gradient(135deg,
        #8B3A00 0%,#A04500 20%,#CC6600 40%,#FFA500 50%,#CC6600 60%,
        #A04500 80%,#8B3A00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Modo oscuro */
body.dark-mode .modal-content {
    background-color: #1e2226;
}


body.dark-mode .modal h2 {
    color: #eaeef2;
}

body.dark-mode .modal-card {
    background-color: #2a2f34;
}

body.dark-mode .modal-card .caption {
    color: #cfd8e6;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-img {
        max-width: 95%;
    }
}
/* Botones de navegación del lightbox */


.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}
.btn,
button[type="submit"],
.slider-btn:hover,
.carousel-btn:hover,
.card-badge,
.servicio-boton ,
.lightbox-prev:hover,
.toast-message.success,
.lightbox-next:hover{
    background: linear-gradient(
        135deg,
        #683401 0%,
        #9e4f00 20%,
        #FC8004 40%,
        #FFA500 50%,
        #FC8004 60%,
        #9e4f00 80%,
        #683401 100%
    );
  
    background-size: 200% 100%;
    
    /* Efecto brillo metálico */
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 3px rgba(255,215,140,0.8),
        inset 0 -1px 2px rgba(0,0,0,0.2);
    
    /* Texto con sombra suave para mejor contraste */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
    }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
}
.servicio-boton:hover {
    transform: translateX(4px);
}
.servicio-icono i{
    font-size: 4rem;
}
@keyframes metalShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Shiny text*/
body.dark-mode .nav-links a:hover,
.servicio-icono i,
.role, .contact-info i,
.dark-mode-btn:hover, .nav-links a:hover,
.card-details i, .section-title span ,
.value-item i,
.ver-mas-btn{
    background: linear-gradient(135deg,
        #743a00 0%,#ca6500 20%,#FC8004 40%,#ffaa0c 50%,#FC8004 60%,
        #ca6500 80%,#743a00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Responsive móvil */
@media (max-width: 768px) {
    .servicio-card {
        flex: 0 0 260px;
    }
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
}



/* ===== 9. EQUIPO ===== */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.team-member {
    border-radius: 32px;
    padding: 1.8rem;
    text-align: center;
    width: 240px;
    border: 4px solid #ffe1cf;
    border-top: 4px  solid #FC8004;
    box-shadow: 4px 8px 20px rgba(0,0,0, 0.4);
    transition: transform 0.2s ease;
    background-color: #F5F5F4;
}

.servicio-boton:hover,
.btn:hover{
    background-color: #cc6600;
    background-position: 100% 0;
    transform: translateY(-2px);
}

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

.team-member h4 {
    font-weight: 800;
}

.avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 3rem;    
    /* Borde degradado usando un pseudo-elemento o padding + background */
    padding: 4px;
    background: linear-gradient(1deg, #7a4006 0%, #9e4f00 20%, #FC8004 40%, #FFA500 50%, #FC8004 60%, #9e4f00 80%, #7a4006 100%);
    background-size: 200% 100%;
    transition: all 0.3s ease;
}

.role {
    font-weight: 700;
}
.contact-info a{
    color: #000;
    text-decoration: none;
}

/* ===== 10. CONTACTO ===== */
.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-info p , .contact-info a {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    font-size: 1.5rem;
    width: 32px;
}

.contact-form {
    flex: 1;
    padding: 2rem;
    border-radius: 28px;
    background-color: #ffffff;
    border: solid 4px #ffe1cf;
    border-top: 4px solid #FC8004;
    box-shadow: 4px 8px 20px rgba(0,0,0, 0.4);
}

.contact-form span {
    background-color: #e2e3e5;
    color: #1a1a1a;
}

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

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 40px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    border-radius: 24px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #FC8004;
    box-shadow: 0 0 0 3px rgba(252, 128, 4, 0.2);
}

/* ===== 11. FOOTER ===== */
footer {
    background-color: #000;
    color: #F4F4F4;
    padding: 2.5rem 0;
    text-align: center;
}

/* ===== 12. TOAST MENSAJE ===== */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #2c3e50;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    animation: fadeInUp 0.3s ease;
}

.toast-message.success {
    border-left: 4px solid #cc6600;
}

.toast-message.error {
    background-color: #dc2626;
    border-left: 4px solid #991b1b;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 13. TEMA OSCURO ===== */
body.dark-mode {
    background-color: #1e2226;
    color: #eaeef2;
}

body.dark-mode .section {
    background-color: #1C1917;
}

body.dark-mode .section-alt {
    background-color: #292524;
}
/* Tema oscuro para clientes */
body.dark-mode .contact-info a{
    color: #fff;
    text-decoration: none;
}

body.dark-mode .cliente-logo {
    background-color: rgba(255, 255, 255, 0.3);
    filter: brightness(0.9);
}

body.dark-mode .card,
body.dark-mode .servicio-card,
body.dark-mode .cliente-card,
body.dark-mode .team-member,
body.dark-mode .values,
body.dark-mode .contact-form {
    background-color: #2a2f34;
    color: #fff;
    border: 4px solid #ffe1cf;
    box-shadow: 0.5px 8px 20px rgba(255, 255, 255, 0.3);
    border-top: 4px solid #FC8004;
}

body.dark-mode .card h3,
body.dark-mode .team-member h4,
body.dark-mode .values h3,
body.dark-mode .servicios-intro,
body.dark-mode .cliente-nombre {
    color: #eee;
}

body.dark-mode .card p,
body.dark-mode .servicio-card p,
body.dark-mode .team-member p,
body.dark-mode .values p,
body.dark-mode .cliente-proyectos li {
    color: #f0f0f0;
}

body.dark-mode .logo,
body.dark-mode .nav-links a,
body.dark-mode .menu-toggle {
    color: #e2e3e5;
}


body.dark-mode .hero-text h1,
body.dark-mode .section-title {
    color: #ffffff;
}

body.dark-mode .contact-form span {
    background-color: #404040;
    color: #e2e3e5;
}

/* ===== 14. RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    .hero-text h1 {
        font-size: 2.3rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .about-grid {
        flex-direction: column;
    }

    .carousel-btn {
        font-size: 1.2rem;
        padding: 0.3rem 0.8rem;
    }

    .toast-message {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
        border-radius: 30px;
    }
}

/* ===== DESCRIPCIÓN DE OBRA EN EL CARRUSEL ===== */
.obra-caption {
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(4px);
    border-left: 4px solid #FC8004;
    text-align: left;
    transition: all 0.3s ease;
}

.obra-caption h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: white;
}

.obra-caption p {
    font-size: 0.85rem;
    margin-bottom: 0;
    text-shadow: none;
    color: #e0e0e0;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .obra-caption {
        padding: 0.5rem 1rem;
        margin-top: 1rem;
        border-radius: 30px;
    }

    .obra-caption h3 {
        font-size: 0.9rem;
    }

    .obra-caption p {
        font-size: 0.7rem;
    }
}