/*==================================================
  ELECTRA MÁLAGA - STYLE.CSS
==================================================*/

/* RESET BASE */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins', sans-serif;
    background:#080a0c;
    color:#ffffff;
    line-height:1.7;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
    transition:color .3s;
}

ul{
    list-style:none;
}

.contenedor{
    width:min(1320px, 92%);
    margin:auto;
}

/* SUBTITULOS Y CABECERAS DE SECCIÓN */
.section-tag{
    display:block;
    color:#FFD700;
    font-size:13px;
    font-weight:800;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:8px;
    text-align:center;
}

.section-title{
    font-size:36px;
    font-weight:800;
    text-align:center;
    color:#ffffff;
    margin-bottom:10px;
}

.section-intro{
    text-align:center;
    color:#a0aab5;
    font-size:16px;
    max-width:680px;
    margin:0 auto 55px auto;
}

/* ANIMACIONES DE APARICIÓN AL SCROLL */
.section-reveal{
    opacity:0;
    transform:translateY(30px);
    transition:all 0.8s ease-out;
}

.section-reveal.revealed{
    opacity:1;
    transform:translateY(0);
}

/* BOTÓN VOLVER ARRIBA */
.scroll-top-btn{
    position:fixed;
    bottom:25px;
    left:25px;
    width:48px;
    height:48px;
    background:#161a20;
    color:#FFD700;
    border:1px solid #FFD700;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
    font-weight:bold;
    z-index:9999;
    opacity:0;
    visibility:hidden;
    transition:.35s;
    box-shadow:0 5px 15px rgba(0,0,0,0.5);
}

.scroll-top-btn.active{
    opacity:1;
    visibility:visible;
}

.scroll-top-btn:hover{
    background:#FFD700;
    color:#000;
}

/* TOPBAR */
.topbar{
    background:#FFD700;
    color:#000000;
    font-family:'Montserrat', sans-serif;
    font-size:13px;
    font-weight:800;
    letter-spacing:0.8px;
}

.topbar-grid{
    min-height:38px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
    padding:4px 0;
}

/* HEADER COMPACTO Y NAVEGACIÓN */
.header{
    position:sticky;
    top:0;
    z-index:999;
    background:#0b0e12;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 30px rgba(0,0,0,.5);
}

.menu{
    min-height:64px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;
    padding:6px 0;
    width:fit-content;
    margin:0 auto;
}

.logo img{
    width:165px;
    height:auto;
}

nav{
    display:flex;
    gap:22px;
}

nav a{
    color:#ffffff;
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.8px;
    position:relative;
    padding:4px 0;
}

nav a:hover{
    color:#FFD700;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-2px;
    width:0;
    height:2px;
    background:#FFD700;
    transition:.3s;
}

nav a:hover::after{
    width:100%;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float{
    position:fixed;
    width:60px;
    height:60px;
    bottom:25px;
    right:25px;
    background-color:#25D366;
    color:#FFF;
    border-radius:50px;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow:2px 5px 15px rgba(0,0,0,0.4);
    z-index:10000;
    transition:.3s;
}

.whatsapp-float:hover{
    transform:scale(1.08);
}

.whatsapp-icon{
    width:34px;
    height:34px;
}

/* HERO & BANNER */
.hero{
    background:#080a0c;
    padding:20px 0 60px 0;
    text-align:center;
}

.hero-logo-principal img{
    width:550px;
    max-width:90%;
    margin:0 auto;
}

.subtitulo{
    color:#ffffff;
    font-size:32px;
    font-weight:800;
    font-style:italic;
    text-transform:uppercase;
    margin:10px 0 20px 0;
}

.hero-banner-full{
    width:100%;
    height:220px;
    overflow:hidden;
    border-top:2px solid #FFD700;
    border-bottom:2px solid #FFD700;
    margin-bottom:30px;
}

.hero-banner-full img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero p{
    max-width:760px;
    margin:0 auto 25px;
    color:#cbd5e1;
    font-size:17px;
}

.hero-botones{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:35px;
}

.btn1, .btn2{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-width:230px;
    height:50px;
    font-size:15px;
    font-weight:700;
    border-radius:50px;
    transition:.3s;
}

.btn1{
    background:#FFD700;
    color:#000;
}

.btn2{
    border:2px solid #FFD700;
    color:#fff;
}

.btn1:hover, .btn2:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-small{
    min-width:auto;
    padding:0 25px;
    height:42px;
    font-size:14px;
}

.btn-full{
    width:100%;
}

.hero-beneficios{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    max-width:900px;
    margin:0 auto;
}

.beneficio{
    background:#11151c;
    border:1px solid #1e2630;
    border-radius:12px;
    padding:15px;
    text-align:center;
}

.beneficio span{
    font-size:24px;
    color:#FFD700;
    display:block;
    margin-bottom:5px;
}

.beneficio p{
    font-size:14px;
    margin:0;
    color:#fff;
}

/* SERVICIOS */
.servicios{
    padding:100px 0;
    background:#0c0f14;
}

.cards{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
}

.card{
    background:#12161f;
    border:1px solid #1d2330;
    border-radius:16px;
    padding:35px 30px;
    transition:all .35s ease;
    position:relative;
    overflow:hidden;
}

.card:hover{
    transform:translateY(-8px);
    border-color:#FFD700;
    box-shadow:0 15px 30px rgba(0,0,0,0.4);
}

.card-icon{
    font-size:36px;
    margin-bottom:15px;
}

.card h3{
    font-size:20px;
    color:#fff;
    margin-bottom:12px;
    font-weight:700;
}

.card p{
    color:#94a3b8;
    font-size:14px;
    line-height:1.6;
}

/* EMPRESA */
.empresa{
    padding:100px 0;
    background:#080a0c;
}

.empresa-apple-grid{
    display:grid;
    grid-template-columns:1.2fr 0.8fr;
    gap:60px;
    align-items:center;
}

.empresa-text-side .section-tag{
    text-align:left;
}

.empresa-text-side h2{
    font-size:42px;
    line-height:1.15;
    margin-bottom:25px;
    font-weight:800;
}

.empresa-text-side .lead-text{
    font-size:17px;
    color:#e2e8f0;
    margin-bottom:20px;
    font-weight:400;
}

.empresa-text-side p{
    color:#94a3b8;
    font-size:15px;
}

.empresa-stats-side{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.stat-card{
    background:#12161f;
    border:1px solid #1e2633;
    border-radius:16px;
    padding:30px;
    transition:.3s;
}

.stat-card.highlight{
    border-color:#FFD700;
    background:linear-gradient(135deg, #12161f 0%, #1a202c 100%);
}

.stat-card.text-only{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    min-height:85px;
}

.stat-label-large{
    font-size:15px;
    font-weight:800;
    letter-spacing:1.5px;
    color:#FFD700;
    text-transform:uppercase;
}

/* ZONAS DE COBERTURA */
.zonas{
    padding:100px 0;
    background:#0c0f14;
}

.zonas-map-wrapper{
    background:#12161f;
    border:1px solid #1e2633;
    border-radius:20px;
    padding:45px;
    display:grid;
    grid-template-columns:1.5fr 1fr;
    gap:40px;
    align-items:center;
}

.zonas-list{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:15px;
}

.zona-item{
    background:#181e29;
    border:1px solid #262f40;
    padding:12px 15px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    color:#e2e8f0;
}

.zonas-info-box{
    border-left:2px solid #FFD700;
    padding-left:30px;
}

.zonas-info-box h3{
    font-size:22px;
    margin-bottom:12px;
}

.zonas-info-box p{
    color:#94a3b8;
    font-size:14px;
    margin-bottom:20px;
}

/* GALERÍA DE TRABAJOS */
.trabajos{
    padding:100px 0;
    background:#080a0c;
}

.galeria-premium{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:25px;
}

.foto-card{
    position:relative;
    border-radius:16px;
    overflow:hidden;
    height:280px;
    border:1px solid #1e2633;
}

.foto-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s ease;
}

.foto-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    display:flex;
    align-items:flex-end;
    padding:20px;
    opacity:0;
    transition:opacity .35s ease;
}

.foto-overlay span{
    color:#FFD700;
    font-weight:700;
    font-size:15px;
}

.foto-card:hover img{
    transform:scale(1.08);
}

.foto-card:hover .foto-overlay{
    opacity:1;
}

/* OPINIONES */
.opiniones{
    padding:100px 0;
    background:#0c0f14;
}

.opiniones-google-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:25px;
}

.google-card{
    background:#12161f;
    border:1px solid #1e2633;
    border-radius:16px;
    padding:30px;
}

.google-card-header{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:15px;
}

.avatar{
    width:45px;
    height:45px;
    background:#FFD700;
    color:#000;
    font-weight:800;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:15px;
}

.user-meta h4{
    font-size:15px;
    color:#fff;
}

.stars{
    color:#FFD700;
    font-size:14px;
}

.google-icon{
    margin-left:auto;
    font-weight:900;
    font-size:18px;
    color:#a0aab5;
}

.comment{
    color:#cbd5e1;
    font-size:14px;
    font-style:italic;
}

/* CALL TO ACTION */
.cta{
    padding:80px 0;
    background:linear-gradient(135deg, #12161f 0%, #080a0c 100%);
    border-top:1px solid #FFD700;
    border-bottom:1px solid #FFD700;
    text-align:center;
}

.cta h2{
    font-size:32px;
    margin-bottom:10px;
}

.cta p{
    color:#94a3b8;
    margin-bottom:25px;
    font-size:16px;
}

.cta-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

/* CONTACTO */
.contacto{
    padding:100px 0;
    background:#080a0c;
}

.contacto-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
}

.contacto-card-info{
    background:#12161f;
    border:1px solid #1e2633;
    border-radius:20px;
    padding:40px;
}

.contacto-brand img{
    width:190px;
    margin-bottom:15px;
}

.contacto-brand p{
    color:#94a3b8;
    font-size:14px;
    margin-bottom:30px;
}

.contacto-direct-list{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.c-item{
    display:flex;
    align-items:center;
    gap:15px;
}

.c-icon{
    font-size:24px;
    width:45px;
    height:45px;
    background:#181e29;
    border:1px solid #262f40;
    border-radius:10px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.c-item strong{
    display:block;
    font-size:13px;
    color:#FFD700;
}

.c-item p, .c-item a{
    font-size:15px;
    color:#fff;
}

.contacto-form-wrapper{
    background:#12161f;
    border:1px solid #1e2633;
    border-radius:20px;
    padding:40px;
}

.form-modern h3{
    font-size:22px;
    margin-bottom:20px;
    color:#fff;
}

.form-group{
    margin-bottom:15px;
}

.form-group input, .form-group textarea{
    width:100%;
    padding:14px 18px;
    background:#181e29;
    border:1px solid #262f40;
    border-radius:10px;
    color:#fff;
    font-family:inherit;
    font-size:14px;
    outline:none;
    transition:.3s;
}

.form-group input:focus, .form-group textarea:focus{
    border-color:#FFD700;
}

.form-group textarea{
    min-height:130px;
    resize:vertical;
}

/* FOOTER */
footer{
    background:#050608;
    border-top:1px solid #151a21;
    padding:70px 0 0 0;
}

.footer-grid-4{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr 1.2fr;
    gap:40px;
    padding-bottom:50px;
}

.brand-col img{
    width:170px;
    margin-bottom:15px;
}

.brand-col p{
    color:#7a8b9e;
    font-size:13.5px;
    line-height:1.6;
}

.footer-col h4{
    color:#FFD700;
    font-size:14px;
    font-weight:800;
    letter-spacing:1px;
    margin-bottom:20px;
}

.footer-col ul li{
    margin-bottom:10px;
}

.footer-col ul li a{
    color:#94a3b8;
    font-size:13.5px;
}

.footer-col ul li a:hover{
    color:#FFD700;
}

.footer-col p{
    color:#94a3b8;
    font-size:13.5px;
}

.copyright{
    border-top:1px solid #12161f;
    padding:20px 0;
    background:#030405;
}

.copyright-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:13px;
    color:#64748b;
    flex-wrap:wrap;
    gap:10px;
}

.legal-links a:hover{
    color:#FFD700;
}

/* RESPONSIVE */
@media(max-width:1024px){
    .empresa-apple-grid, .zonas-map-wrapper, .contacto-grid, .footer-grid-4{
        grid-template-columns:1fr;
    }
    .hero-beneficios{
        grid-template-columns:repeat(2,1fr);
    }
    .cards, .galeria-premium, .opiniones-google-grid, .zonas-list{
        grid-template-columns:repeat(2,1fr);
    }
    .zonas-info-box{
        border-left:none;
        border-top:2px solid #FFD700;
        padding-left:0;
        padding-top:20px;
    }
}

@media(max-width:768px){
    nav{ display:none; }
    .subtitulo{ font-size:22px; }
    .cards, .galeria-premium, .opiniones-google-grid, .zonas-list{
        grid-template-columns:1fr;
    }
    .empresa-text-side h2{ font-size:30px; }
    .hero-beneficios{ grid-template-columns:1fr; }
}