/* ========================================= */
/* === VARIABLES === */
/* ========================================= */
:root {
    --color-primario: #1A1A1A;
    --color-secundario: #146B8C;
    --color-acento: #FF8C42;
    --color-urgencia: #E63946;
    --color-ambar: #FFB347;
    --color-whatsapp: #25D366;
    --color-boton-gris: #3b3164;
    --bg-body: #FFFFFF;
    --bg-nosotros: #F0F4F7;
    --bg-gris-claro: #F0F4F7;
    --texto-oscuro: #333333;
    --texto-claro: #FFFFFF;
    --texto-parrafo-nosotros: #333333;
    --ancho-maximo: 1200px;
}

/* ========================================= */
/* === BASES === */
/* ========================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Arial', sans-serif;
    margin: 0; padding: 0;
    background-color: var(--bg-body);
    color: var(--texto-oscuro);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--ancho-maximo); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { margin-top: 0; color: var(--color-primario); }

.titulo-centrado { text-align: center; text-transform: uppercase; font-size: 32px; margin-bottom: 20px; font-weight: 800; }
.subtitulo-linea { width: 60px; height: 3px; background-color: var(--color-acento); margin: 0 auto 30px; }

/* ========================================= */
/* === HEADER === */
/* ========================================= */
.header {
    background-color: #FFFFFF;
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-bottom: 1px solid #EEE;
}
.header-inner { display: flex; justify-content: center; align-items: center; }
.logo img { height: 50px; }

/* ========================================= */
/* === HERO === */
/* ========================================= */
.hero {
    min-height: 520px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative;
    background: #FFFFFF;
    padding: 80px 20px 70px;
    overflow: hidden;
    border-bottom: 1px solid #EEE;
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: #C43A1F; font-weight: 700; font-size: 13px;
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 28px;
}
.punto-alarma {
    width: 9px; height: 9px; background: #E63946;
    border-radius: 50%;
    animation: parpadeo 1.2s ease-in-out infinite;
}
@keyframes parpadeo {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(230,57,70,0.55); }
    50% { opacity: 0.4; box-shadow: 0 0 0 6px rgba(230,57,70,0); }
}
.hero-content h1 {
    font-size: 56px; line-height: 1.05;
    margin-bottom: 22px; color: #111;
    font-weight: 900; letter-spacing: -1.5px;
}
.hero-content h1 .resalte { color: var(--color-acento); }
.hero-content p.hero-sub {
    font-size: 21px; font-weight: 400; color: #555;
    margin: 0 auto 40px; max-width: 560px; line-height: 1.45;
}
.hero-content p.hero-sub strong { font-weight: 700; color: #111; }

.btn-wsp-hero {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px;
    background-color: var(--color-acento); color: #fff;
    font-size: 23px; font-weight: 800;
    padding: 22px 52px; border-radius: 60px;
    box-shadow: 0 12px 30px rgba(255, 140, 66, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    animation: pulso 2s infinite;
}
.btn-wsp-hero i { font-size: 28px; }
.btn-wsp-hero:hover {
    transform: translateY(-2px);
    background-color: #ff7a26;
    color: #fff;
    box-shadow: 0 16px 40px rgba(255, 140, 66, 0.5);
}
@keyframes pulso {
    0%   { box-shadow: 0 12px 30px rgba(255, 140, 66, 0.4), 0 0 0 0 rgba(255, 140, 66, 0.5); }
    70%  { box-shadow: 0 12px 30px rgba(255, 140, 66, 0.4), 0 0 0 20px rgba(255, 140, 66, 0); }
    100% { box-shadow: 0 12px 30px rgba(255, 140, 66, 0.4), 0 0 0 0 rgba(255, 140, 66, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-wsp-hero, .punto-alarma { animation: none; }
}
.hero-llamada { display: block; margin-top: 20px; color: #777; font-size: 15px; }
.hero-llamada a { color: #111; font-weight: 700; text-decoration: underline; }
.hero-llamada a:hover { color: var(--color-acento); }
.hero-confianza {
    margin-top: 40px; padding-top: 28px;
    border-top: 1px solid #EFEFEF; color: #666; font-size: 14px;
    display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px;
}
.hero-confianza span i { color: var(--color-acento); margin-right: 8px; }

/* ========================================= */
/* === BREADCRUMB (nuevo, para páginas internas) === */
/* ========================================= */
.breadcrumb {
    padding: 18px 20px;
    font-size: 14px;
    color: #777;
    border-bottom: 1px solid #EEE;
    background: #FAFAFA;
}
.breadcrumb a { color: var(--color-secundario); font-weight: 600; }
.breadcrumb a:hover { color: var(--color-acento); }
.breadcrumb .sep { margin: 0 8px; color: #BBB; }
.breadcrumb .current { color: #333; font-weight: 600; }

/* ========================================= */
/* === CONTENIDO DE SERVICIO (nuevo) === */
/* ========================================= */
.service-content { padding: 60px 20px; max-width: 900px; }
.service-content h2 {
    font-size: 28px; font-weight: 800;
    margin-top: 50px; margin-bottom: 16px;
    color: var(--color-primario);
    border-left: 4px solid var(--color-acento);
    padding-left: 15px;
}
.service-content h2:first-of-type { margin-top: 0; }
.service-content h3 {
    font-size: 20px; font-weight: 700;
    margin-top: 30px; margin-bottom: 10px;
    color: var(--color-secundario);
}
.service-content p { font-size: 16px; margin: 0 0 16px; color: #444; }
.service-content strong { color: #111; }
.service-content ul.lista-chequeo { margin: 16px 0 20px; }
.service-content ul.lista-chequeo li {
    padding: 8px 0 8px 32px;
    position: relative;
    font-size: 16px;
    color: #444;
}
.service-content ul.lista-chequeo li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-acento);
    position: absolute;
    left: 0; top: 8px;
    background: rgba(255, 140, 66, 0.12);
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}
.service-content ul.lista-alerta li::before {
    content: '\f071';
    color: var(--color-urgencia);
    background: rgba(230, 57, 70, 0.12);
}

.faq-item {
    background: #F7F9FB;
    border-left: 3px solid var(--color-secundario);
    padding: 18px 22px;
    margin-bottom: 14px;
    border-radius: 4px;
}
.faq-item h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--color-primario);
}
.faq-item p { margin: 0; font-size: 15px; color: #555; }

.cta-inline {
    text-align: center;
    background: linear-gradient(135deg, #FFF7F0 0%, #FFECDD 100%);
    border-radius: 12px;
    padding: 36px 24px;
    margin: 40px 0;
}
.cta-inline p { font-size: 18px; margin-bottom: 22px; color: #333; font-weight: 600; }
.cta-inline .btn-wsp-hero { font-size: 19px; padding: 17px 38px; }

/* ========================================= */
/* === ICONOS SERVICIOS === */
/* ========================================= */
.icon-grid-section { padding: 40px 0; background-color: var(--bg-body); }
.icon-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.icon-item {
    text-align: center; width: 140px;
    display: block; color: inherit;
    transition: transform 0.3s;
}
.icon-item:hover { transform: translateY(-4px); }
.icon-item:hover p { color: var(--color-acento); }
.icon-item.active .icon-circle { background-color: var(--color-acento); }
.icon-item.active p { color: var(--color-acento); }
.icon-circle {
    width: 100px; height: 100px;
    background-color: var(--color-secundario);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 15px;
    font-size: 40px; color: var(--texto-claro);
    transition: transform 0.3s, background-color 0.3s;
}
.icon-item:hover .icon-circle { transform: scale(1.1); background-color: var(--color-acento); }
.icon-item p { font-size: 14px; font-weight: bold; line-height: 1.3; transition: color 0.3s; margin: 0; }

/* ========================================= */
/* === ACERCA DE NOSOTROS === */
/* ========================================= */
.about-section { background-color: var(--bg-nosotros); padding: 80px 0; text-align: center; }
.about-text { max-width: 800px; margin: 0 auto; color: var(--texto-parrafo-nosotros); font-size: 16px; }
.about-text p { margin-bottom: 20px; }

/* ========================================= */
/* === PRESUPUESTO === */
/* ========================================= */
.budget-section {
    background-image: url('images/fondo2.png');
    background-size: cover; background-position: center; background-attachment: fixed;
    padding: 100px 0; position: relative; text-align: center; color: var(--texto-claro);
}
.budget-section-inner {
    background-image: url('../images/fondo2.png');
}
.budget-section::before { content: ''; position: absolute; inset: 0; background: rgba(26, 26, 26, 0.85); }
.budget-content { position: relative; z-index: 2; }
.budget-icon { font-size: 60px; margin-bottom: 20px; color: var(--color-acento); }
.budget-content h2 { font-size: 36px; margin-bottom: 30px; color: var(--texto-claro); text-shadow: 0 0 5px rgba(0,0,0,0.5); }
.btn-budget {
    display: inline-block; background-color: rgba(255,255,255,0.1);
    color: var(--texto-claro); padding: 15px 40px;
    border: 2px solid var(--texto-claro); font-size: 18px; font-weight: bold; text-transform: uppercase;
}
.btn-budget:hover { background-color: var(--color-acento); border-color: var(--color-acento); color: var(--texto-claro); }

/* ========================================= */
/* === BARRA CONTACTO === */
/* ========================================= */
.contact-bar { background-color: #fff; padding: 40px 0; border-bottom: 1px solid #eee; }
.contact-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.contact-left { display: flex; align-items: center; gap: 20px; max-width: 60%; }
.contact-icon-big { font-size: 50px; color: var(--color-whatsapp); }
.contact-text-big { font-size: 20px; font-weight: bold; color: #444; }
.contact-right { text-align: center; }
.btn-phone-green {
    background-color: var(--color-whatsapp); color: white; padding: 10px 25px;
    font-size: 20px; font-weight: bold; border-radius: 5px;
    display: inline-flex; align-items: center; gap: 10px;
}

/* ========================================= */
/* === GRILLA SERVICIOS (fotos) === */
/* ========================================= */
.services-detail-section { padding: 60px 0; background-color: var(--bg-body); }
.services-grid-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { text-align: center; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); padding-bottom: 20px; border-radius: 8px; overflow: hidden; }
.service-card img { width: 100%; height: 250px; object-fit: cover; }
.service-card h3 { color: var(--color-secundario); margin: 20px 0 10px; font-size: 18px; text-transform: uppercase; }
.btn-ver-mas { background-color: var(--color-boton-gris); color: white; padding: 8px 20px; font-size: 14px; text-transform: uppercase; display: inline-block; border-radius: 3px; }
.btn-ver-mas:hover { background-color: var(--color-acento); }
.btn-contact-center {
    display: block; width: fit-content; margin: 40px auto 0;
    background-color: var(--color-whatsapp); color: white; padding: 15px 40px;
    font-size: 18px; font-weight: bold; border-radius: 5px;
}

/* ========================================= */
/* === CARRUSEL === */
/* ========================================= */
.carousel-section { background-color: var(--bg-gris-claro); padding: 60px 0; overflow: hidden; }
.carousel-slider { height: 350px; margin: auto; position: relative; width: 90%; display: grid; place-items: center; overflow: hidden; }
.carousel-track-container { display: flex; width: calc(350px * 10); animation: scroll 40s linear infinite; }
.carousel-track-container:hover { animation-play-state: paused; }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 5)); }
}
.carousel-card { height: 300px; width: 320px; display: flex; flex-direction: column; align-items: center; padding: 15px; perspective: 100px; }
.carousel-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); transition: transform 0.3s; }
.carousel-card img:hover { transform: scale(1.05); }
.carousel-card p { margin-top: 10px; font-weight: bold; color: #555; font-size: 16px; }

/* ========================================= */
/* === FOOTER === */
/* ========================================= */
.footer { background-color: #111; color: #ccc; padding: 60px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h4 { color: white; margin-bottom: 20px; font-size: 16px; text-transform: uppercase; }
.footer ul li { margin-bottom: 10px; }
.footer ul li i { margin-right: 10px; width: 20px; text-align: center; }
.footer a:hover { color: var(--color-acento); }
.footer-logo-col img { width: 200px; margin-bottom: 15px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; }

/* ========================================= */
/* === FLOTANTE WHATSAPP === */
/* ========================================= */
.wsp-flotante {
    position: fixed; bottom: 20px; right: 20px;
    background: #25D366; color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 35px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 9999;
}

/* ========================================= */
/* === RESPONSIVE === */
/* ========================================= */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .hero { min-height: 460px; padding: 55px 20px; }
    .hero-content h1 { font-size: 36px; letter-spacing: -0.5px; }
    .hero-content p.hero-sub { font-size: 17px; }
    .btn-wsp-hero { font-size: 19px; padding: 18px 30px; width: 100%; max-width: 340px; }
    .hero-confianza { gap: 8px 20px; font-size: 13px; }
    .contact-left { max-width: 100%; flex-direction: column; text-align: center; }
    .contact-bar-inner { justify-content: center; }
    .service-content { padding: 40px 20px; }
    .service-content h2 { font-size: 22px; }
}
