/* ========== VARIABLES Y RESET ========== */
:root {
    --primary-color: #07264a; /* azul oscuro del folleto */
    --secondary-color: #0b63d5; /* azul brillante */
    --accent-green: #25D366; /* verde WhatsApp */
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* ========== UTILIDADES ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ========== CABECERA ========== */
.header{
    width:100%;
    background:#ffffff;
    padding:10px 30px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.logo-container{
    display:flex;
    align-items:center;
}

.logo{
    height:70px;
    width:auto;
}
.logo-container{
    display:flex;
    justify-content:center;
    align-items:center;
}



/*========== NAVEGACIÓN ========== */
.navbar {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: .2rem;
    color: inherit;
    text-decoration: none;
}

.brand-link h1,
.brand-link .brand-subtitle {
    color: var(--white);
}

.brand-subtitle {
    margin: 0;
    font-size: .95rem;
    color: rgba(255, 255, 255, 0.9);
}

.header-logo {
    width: 90px;
    max-height: 90px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
/*** Navegación mejora visual  */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-menu li {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    overflow: hidden;
}

.nav-menu li:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.18);
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 700;
    display: inline-block;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-family: 'Segoe UI', 'Segoe UI Variable', 'Montserrat', 'Poppins', sans-serif;
    letter-spacing: 0.02em;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a:hover {
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

/* Hero con imagen de referencia (reemplazar assets/flyer.svg por la imagen real) */
.hero.hero-flyer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    background-size: cover;
    background-position: center right;
}

/* Layout para página de servicios: sidebar estilo folleto */
.services-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: start;
}

.sidebar-services {
    background: linear-gradient(180deg, var(--white) 0%, #f9fbfe 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(7, 38, 74, 0.08);
    border-left: 6px solid var(--secondary-color);
}

.sidebar-services h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.service-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.7rem 0;
    border-bottom: 1px solid #eef3fb;
}

.service-list li .icon {
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: white;
    border-radius: 8px;
}

.sidebar-whatsapp {
    margin-top: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-badge {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.whatsapp-badge .number {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Barra fija inferior para WhatsApp */
.whatsapp-bar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--accent-green);
    color: white;
    padding: 0.9rem 1rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(3, 90, 43, 0.2);
    display: flex;
    gap: 0.8rem;
    align-items: center;
    z-index: 1200;
    text-decoration: none;
}

.whatsapp-bar img {
    width: 36px;
    height: 36px;
}

@media (max-width: 900px) {
    .services-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-services {
        order: 2;
    }
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== BOTONES ========== */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background-color: #00b385;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ========== SECCIONES ========== */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

/* ========== SERVICIOS ========== */
.services-preview {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.service-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.service-card-link:hover {
    text-decoration: none;
    transform: translateY(-3px);
}

.service-card-content {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-content {
    transform: translateY(-8px);
}

.service-card img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    object-position: top center;
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    margin: 0;
}

/* ========== POR QUÉ ELEGIR NOS ========== */
.why-us {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.feature h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-light);
}

/* ========== TESTIMONIOS ========== */
.testimonials {
    background-color: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.testimonial p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-style: italic;
}

.testimonial .author {
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}

/* ========== CTA SECTION ========== */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* ========== FORMULARIOS ========== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(7, 38, 74, 0.35);
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(11, 99, 213, 0.12);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

/* ========== PÁGINA SERVICIOS ========== */
.service-detail {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    align-items: center;
}

.service-detail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.service-detail h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-detail ul {
    margin-left: 2rem;
    color: var(--text-dark);
}

.service-detail li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .service-detail {
        grid-template-columns: 1fr;
    }
}

/* ========== TABLA DE PRECIOS ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: var(--white);
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.15);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
}

.pricing-card li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ========== PÁGINA CONTACTO ========== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-content h2 {
        font-size: 2rem;
    }

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

    .hero {
        padding: 60px 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .navbar-brand h1 {
        font-size: 1.3rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
