@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    --primary-blue: #1B4F9B;
    --primary-orange: #F15A24;
    --soft-pink: #FFF0F2;
    --text-dark: #2a2a2a;
    --text-muted: #666;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.13);
    --radius: 14px;
    --transition: all 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: #fff;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.25;
}

/* ─── NAVBAR ──────────────────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 85px;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar::before {
    display: none;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-wrapper {
    background: white;
    padding: 10px 15px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(10px);
    transition: var(--transition);
}

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

.logo-nav {
    height: 120px;
    width: auto;
    display: block;
}

/* ─── NAVBAR INFO BAR ─────────────────────────────────────── */
.navbar-info {
    display: flex;
    align-items: center;
    gap: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.navbar-info-item:hover {
    color: var(--primary-blue);
}

.navbar-info-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-orange);
    flex-shrink: 0;
}

.navbar-info-item div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.navbar-info-item strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.navbar-info-item span {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.navbar-info-divider {
    width: 1px;
    height: 36px;
    background: #e0e0e0;
    flex-shrink: 0;
}

/* Ocultar info bar en pantallas pequeñas */
.navbar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.navbar-phone-mobile {
    display: none;
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-phone-mobile:hover {
    color: var(--primary-orange);
}

@media (max-width: 1300px) {
    .navbar {
        padding: 0 2%;
        /* Bajamos de 5% a 2% para ganar espacio a la derecha */
    }

    .navbar-info {
        gap: 12px;
    }

    .navbar-right .btn-nav-destacado {
        margin-right: -10px;
        padding: 8px 16px !important;
        font-size: 0.82rem !important;
    }
}

@media (max-width: 1100px) {
    .navbar-info {
        display: none;
    }

    .navbar-phone-mobile {
        display: block;
    }

    .logo-nav {
        height: 80px;
    }

    .btn-nav-destacado {
        margin-right: 0;
        padding: 8px 16px;
        font-size: 0.82rem;
    }
    .navbar {
        /* Damos un pequeño respiro en los bordes para móviles */
        padding: 0 15px; 
    }
}

/* ─── NAVBAR BOTÓN ────────────────────────────────────────── */
.btn-nav-destacado {
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(241, 90, 36, 0.25);
    transition: var(--transition);
}

.btn-nav-destacado:hover {
    background-color: #d4491b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(241, 90, 36, 0.35);
}

/* ─── PARALLAX HERO ───────────────────────────────────────── */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.96);
    padding: 50px 45px;
    max-width: 720px;
    border-radius: 22px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.8s ease both;
}

.hero-card h1 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin: 18px 0 14px;
}

.hero-card p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.small-text {
    font-size: 0.9rem;
    color: #888;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ─── SECCIONES BASE ──────────────────────────────────────── */
.section-container {
    padding: 70px 10%;
}

.light-bg {
    background-color: var(--soft-pink);
}

.title-center {
    text-align: center;
    margin-bottom: 45px;
    color: var(--primary-blue);
    font-size: 1.9rem;
    position: relative;
}

.title-center::after {
    content: '';
    display: block;
    width: 55px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 4px;
    margin: 12px auto 0;
}

/* ─── SERVICES GRID ───────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-orange);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-card.blue-accent {
    border-top-color: var(--primary-blue);
}

.service-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ─── WHY US / SPLIT LAYOUT ───────────────────────────────── */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-layout h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.check-list li::before {
    content: '✓';
    background: var(--primary-orange);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.rounded-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

/* ─── PROCESS STEPS ───────────────────────────────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 24px;
    text-align: center;
}

.step {
    background: white;
    border-radius: var(--radius);
    padding: 28px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    opacity: 0.2;
    display: block;
    line-height: 1;
}

.step h4 {
    color: var(--primary-blue);
    margin: 8px 0 8px;
    font-size: 1rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

/* ─── TECH GRID ───────────────────────────────────────────── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.tech-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tech-card:hover img {
    transform: scale(1.04);
}

.tech-info {
    padding: 22px;
}

.tech-info h4 {
    color: var(--primary-blue);
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.tech-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ─── QUALITY GRID ────────────────────────────────────────── */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.quality-item {
    background: white;
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-blue);
    transition: var(--transition);
}

.quality-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.quality-item h4 {
    color: var(--primary-blue);
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.quality-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ─── MAPA ────────────────────────────────────────────────── */
.map-section {
    padding: 60px 0 0 0;
    background-color: #ffffff;
}

.container-map {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10%;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 450px;
    position: relative;
    height: 0;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: -50px;
    z-index: 5;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeUp 0.5s ease both;
}

.form-success-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.form-success h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-success a {
    color: var(--primary-orange);
    font-weight: 700;
    text-decoration: none;
}

.form-error {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    color: #cc0000;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ─── FORMULARIO PRESUPUESTO ──────────────────────────────── */
.presupuesto-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f2 100%);
    padding: 80px 10%;
}

.presupuesto-section .title-center {
    margin-bottom: 10px;
}

.presupuesto-section .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 45px;
    font-size: 1rem;
}

.form-wrapper {
    max-width: 750px;
    margin: 0 auto;
    background: white;
    border-radius: 22px;
    padding: 45px 50px;
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 13px 16px;
    border: 2px solid #e8ecf2;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #fafbff;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(27, 79, 155, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: #d4491b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(241, 90, 36, 0.3);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 14px;
}

/* ─── FOOTER BOTTOM ───────────────────────────────────────── */
.footer-bottom {
    background: #0f2e5e;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 6%;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-orange);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.25);
}

.footer-privacy {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.footer-privacy:hover {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ─── FOOTER / CTA ────────────────────────────────────────── */
.footer-cta {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding-top: 120px !important;
}

.footer-cta h2 {
    font-size: 2rem;
    margin-bottom: 14px;
}

.footer-cta p {
    opacity: 0.85;
    max-width: 650px;
    margin: 0 auto 12px;
    font-size: 0.97rem;
}

.btn-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-orange {
    background: var(--primary-orange);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(241, 90, 36, 0.3);
    transition: var(--transition);
}

.btn-orange:hover {
    background: #d4491b;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(241, 90, 36, 0.4);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    padding: 13px 35px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* ─── BADGES Y LABELS ─────────────────────────────────────── */
.badge {
    background-color: var(--primary-orange);
    color: white;
    padding: 6px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    border-radius: 50px;
    display: inline-block;
}

.urgencias-label {
    color: var(--primary-blue);
    font-weight: 800;
    border-left: 3px solid var(--primary-orange);
    padding-left: 10px;
}

/* ─── WHATSAPP ────────────────────────────────────────────── */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 62px;
    height: 62px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 2000;
    transition: var(--transition);
}

.btn-whatsapp img {
    width: 35px;
    height: 35px;
}

.btn-whatsapp:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rounded-img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .logo-nav {
        height: 80px;
    }

    .btn-nav-destacado {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .section-container {
        padding: 50px 6%;
    }

    .presupuesto-section {
        padding: 60px 5%;
    }

    .form-wrapper {
        padding: 30px 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 30px 22px;
        margin: 0 15px;
    }

    .hero-card h1 {
        font-size: 1.6rem;
    }

    .title-center {
        font-size: 1.5rem;
    }

    .footer-cta h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .btn-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .parallax {
        background-attachment: scroll;
    }
}

/* ─── ESTILOS BANNER COOKIES ─────────────────────────────── */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: #ffffff;
    padding: 20px 30px;
    z-index: 3000;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid #eee;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cookie-text a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-primary:hover {
    background: var(--primary-orange);
}

.btn-cookie-secondary:hover {
    background: #f5f5f5;
    color: var(--text-dark);
}

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

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    min-width: 160px;
}

.footer-links .footer-privacy {
    display: block;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .footer-links {
        align-items: center;
    }
}