/* RESET Y CONFIGURACIÓN GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-image: url('imagenes/fondoconta.jpeg');
}

html {
    scroll-behavior: smooth;
}

/* PALETA DE COLORES */
:root {
    --naranja-principal: #f39c12;
    --naranja-oscuro: #e67e22;
    --naranja-claro: #f4a261;
    --azul-marino: #2c3e50;
    --azul-oscuro: #1a252f;
    --gris-claro: #ecf0f1;
    --blanco: #ffffff;
    --texto-gris: #7f8c8d;
    --transicion-suave: all 0.4s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ANIMACIONES */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HEADER */
.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.header-logo:link,
.header-logo:visited,
.header-logo:hover,
.header-logo:active {
    text-decoration: none;
    color: inherit;
}

.header-logo img,
.header-logo svg {
    width: 50px;
    height: 50px;
    background: var(--naranja-principal);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(243, 157, 18, 0.3);
    pointer-events: none;
}

.header-logo img {
    object-fit: contain;
}

.header-logo svg {
    fill: white;
}

.header-logo span {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--blanco);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(44, 62, 80, 0);
}

.header.scrolled {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-button {
    background: linear-gradient(45deg, var(--naranja-principal), var(--naranja-oscuro));
    color: var(--blanco);
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion-suave);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.contact-button:hover {
    background: linear-gradient(45deg, var(--naranja-oscuro), var(--naranja-principal));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.phone-info {
    color: var(--blanco);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-number {
    font-size: 1.1em;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.phone-label {
    font-size: 0.85em;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* SECCIÓN HERO */
.hero {
    background: linear-gradient(135deg, var(--azul-marino) 0%, var(--azul-oscuro) 100%);
    color: var(--blanco);
    padding: 160px 0 120px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)),
        url('imagenes/construccion.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: var(--naranja-principal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

.hero-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.hero-logo svg {
    width: 70px;
    height: 70px;
    fill: var(--blanco);
}

.hero h1 {
    font-size: clamp(2.5em, 5vw, 3.8em);
    margin-bottom: 25px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--blanco), var(--naranja-claro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1em, 2vw, 1.4em);
    margin-bottom: 15px;
    color: var(--naranja-claro);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: clamp(1em, 1.5vw, 1.2em);
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button {
    background: linear-gradient(45deg, var(--naranja-principal), var(--naranja-oscuro));
    color: var(--blanco);
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion-suave);
    animation: fadeInUp 1s ease-out 0.6s both;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--naranja-oscuro), var(--naranja-principal));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(243, 156, 18, 0.4);
}

/* SECCIÓN SOBRE NOSOTROS */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gris-claro) 0%, var(--blanco) 100%);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)),
        url('imagenes/fondoconta.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: clamp(2em, 4vw, 2.8em);
    margin-bottom: 25px;
    color: var(--blanco); /* CAMBIADO A BLANCO */
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--naranja-principal), var(--naranja-oscuro));
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.15em;
    color: var(--blanco); /* CAMBIADO A BLANCO */
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 25px;
    text-align: justify;
}

.about-image {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 70px;
}

.feature {
    background: rgba(255, 255, 255, 0.1); /* FONDO SEMI-TRANSPARENTE */
    backdrop-filter: blur(10px); /* EFECTO VIDRIO */
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transicion-suave);
    border: 1px solid rgba(255, 255, 255, 0.2); /* BORDE SUTIL */
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.15); /* MÁS VISIBLE AL HOVER */
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--naranja-principal), var(--naranja-oscuro));
    border-radius: 20px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--blanco);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.feature h3 {
    color: var(--blanco); /* CAMBIADO A BLANCO */
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature p {
    color: rgba(255, 255, 255, 0.9); /* CAMBIADO A BLANCO CON TRANSPARENCIA */
    line-height: 1.6;
    text-align: justify;
}

/* SECCIÓN CARRUSEL */
.carousel-section {
    padding: 100px 0;
    background: var(--blanco);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)),
        url('imagenes/fondoconta.jpeg');
    z-index: 1;
}

.carousel-section .container {
    position: relative;
    z-index: 2;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.carousel {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.nav-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(243, 156, 18, 0.3);
    cursor: pointer;
    transition: var(--transicion-suave);
}

.nav-dot.active {
    background: var(--naranja-principal);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--azul-marino);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
    background: var(--blanco);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.carousel-btn.prev {
    left: 25px;
}

.carousel-btn.next {
    right: 25px;
}

/* FOOTER */
.footer {
    background: #1a252f;
    color: var(--white);
    padding: 2rem 0;
    position: relative;
    margin: 0;
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
}

.footer p {
    color: rgba(247, 245, 245, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .header-contact {
        gap: 15px;
    }
    
    .phone-info {
        display: none;
    }
    
    .contact-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .header-logo span {
        font-size: 1.2em;
    }
    
    .hero {
        padding: 120px 20px 80px;
        min-height: 70vh;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .carousel-btn.prev {
        left: 15px;
    }
    
    .carousel-btn.next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    
    .header-logo img,
    .header-logo svg {
        width: 40px;
        height: 40px;
    }
    
    .header-logo span {
        font-size: 1em;
    }
    
    .contact-button {
        padding: 8px 16px;
        font-size: 0.8em;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    
    .hero-logo img,
    .hero-logo svg {
        width: 60px;
        height: 60px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1em;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        margin: 40px 20px;
    }
    
    .carousel-item img {
        height: 300px;
    }
}