/* ===== VARIABLES Y ESTILOS BASE ===== */
:root {
    --primary-dark: #0A192F;
    --primary-medium: #1E3A5F;
    --primary-light: #64B5F6;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --text-dark: #333333;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.navbar {
    background: var(--primary-dark);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-light) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand span {
    color: var(--white);
}

.navbar-logo {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    transition: var(--transition);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.06);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.3"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.2"/><circle cx="60" cy="80" r="1" fill="white" opacity="0.3"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.2"/></svg>');
    opacity: 0.5;
    /* Es puramente decorativo: sin esto, esta capa queda por encima del
       contenido (h1, botones) y "roba" los clics aunque se vea transparente. */
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero .highlight {
    color: var(--primary-light);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary-custom {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.btn-primary-custom:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 80px 0;
    background: var(--white);
}

.service-card {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    box-shadow: var(--shadow);
    transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.35s ease, transform 0.35s ease;
    /* La tarjeta es un <a>: quitamos los estilos de enlace por defecto */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card:hover,
.service-card:focus {
    text-decoration: none;
    color: inherit;
}

.service-card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.35);
    border-color: var(--primary-dark);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-light);
    font-size: 2rem;
    flex-shrink: 0;
    transition: transform 0.4s ease, margin 0.4s ease, background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.service-body {
    width: 100%;
    text-align: left;
}

/* ===== EFECTO HOVER ESTILIZADO ===== */
/* El ícono y el nombre del servicio siempre están visibles. Al pasar el
   mouse, la tarjeta se "invierte" a un fondo degradado azul oscuro y
   revela la descripción + lista de detalles. En touch/mobile el detalle
   se muestra siempre, ya que ahí no existe un hover real. */
@media (hover: hover) and (pointer: fine) {
    .service-card {
        min-height: 210px;
    }

    .service-card .service-body {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.45s ease, opacity 0.3s ease 0.05s, margin-top 0.45s ease;
    }

    .service-card:hover {
        background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    }

    .service-card:hover .service-icon {
        transform: translateY(-4px) scale(0.9);
        margin-bottom: 1rem;
        background: var(--white);
        color: var(--primary-dark);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    .service-card:hover h3 {
        color: var(--white);
    }

    .service-card:hover .service-body {
        max-height: 380px;
        opacity: 1;
        margin-top: 0.25rem;
    }

    .service-card:hover .service-body p {
        color: rgba(255, 255, 255, 0.75) !important;
    }

    .service-card:hover .service-body li {
        color: var(--white);
    }

    .service-card:hover .service-body li::before {
        color: var(--primary-light);
    }
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    transition: color 0.4s ease;
}

.service-body li,
.service-body li::before,
.service-body p {
    transition: color 0.4s ease;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* ===== WHY CHOOSE US ===== */
.why-us {
    padding: 80px 0;
    background: var(--light-gray);
}

.feature-box {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-medium);
    margin-bottom: 1rem;
}

.feature-box h4 {
    margin-bottom: 0.5rem;
}

/* ===== PROCESS SECTION ===== */
.process {
    padding: 80px 0;
    background: var(--white);
}

.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-dark);
    color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    font-family: 'Poppins', sans-serif;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== CONTACT PAGE ===== */
.contact-page {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact-info-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
}

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

.contact-item i {
    color: var(--primary-medium);
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item p {
    margin-bottom: 0;
    color: #666;
}

.contact-form-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-label {
    font-weight: 600;
    color: var(--primary-dark);
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(100, 181, 246, 0.25);
}

.btn-primary {
    background: var(--primary-medium);
    border: none;
    padding: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 60px 0;
    background: var(--white);
}

.map-placeholder {
    background: var(--light-gray);
    padding: 60px;
    border-radius: 15px;
    color: #999;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.social-links a {
    color: var(--white);
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
}

footer small {
    color: #999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services,
    .why-us,
    .process,
    .contact-page {
        padding: 60px 0;
    }
    
    .service-tab:hover,
    .service-tab.active {
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-logo {
        height: 38px;
    }
}

/* ===== MODAL DE COTIZACIÓN RÁPIDA ===== */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--white);
    border-bottom: none;
    padding: 1.5rem 1.5rem;
}

.modal-header .modal-title {
    color: var(--white);
    font-weight: 700;
}

.modal-body {
    padding: 1.75rem;
}

#quoteModalSuccess i {
    color: #28a745;
}

/* ===== PÁGINAS DE DETALLE DE SERVICIO ===== */
.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.breadcrumb-back:hover {
    color: var(--white);
    text-decoration: none;
}

.offer-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    border: 2px solid #e0e0e0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.offer-card .service-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.offer-card h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    overflow-wrap: break-word;
}

.offer-card p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.service-detail-intro {
    max-width: 720px;
}

/* ===== CATÁLOGO DE PRODUCTOS (con precio) ===== */
.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    border: 2px solid #e0e0e0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.product-card-img {
    height: 180px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-img i {
    font-size: 3rem;
    color: #b9c4d0;
}

.product-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-body h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    overflow-wrap: break-word;
}

.product-card-body p {
    color: #666;
    font-size: 0.9rem;
    flex-grow: 1;
}

.product-price {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-medium);
}

.map-embed {
    border-radius: 15px;
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    min-height: 350px;
    border: 0;
    display: block;
}

/* Campo "trampa" antispam: invisible para personas (fuera de pantalla),
   pero los bots automáticos suelen rellenarlo igual. No usar display:none
   directamente porque algunos bots lo detectan y lo evitan. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

