/* ============================================================================
   INTEGRASGE - CSS FINAL RESPONSIVE - Cards compactas para cualquier pantalla
   ============================================================================ */

:root {
    --primary-blue: #2e54a6;
    --secondary-blue: #3b68c6;
    --accent-blue: #4a7de0;
    --gray-dark: #2c3e50;
    --gray: #7f8c8d;
    --gray-light: #ecf0f1;
    --white: #ffffff;
    --gold: #c9a961;
}

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

body {
    font-family: "Montserrat", sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: var(--primary-blue);
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-blue);
    color: white !important;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.nav-cta::after {
    display: none;
}
.nav-cta:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 84, 166, 0.3);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding-top: 100px;
    padding-bottom: 3rem;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url("../image/eje2.png");
    background-size: cover;
    opacity: 0.6;
    z-index: 1;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%232E54A6;stop-opacity:0.15"/><stop offset="100%" style="stop-color:%233B68C6;stop-opacity:0.05"/></linearGradient></defs><rect width="1200" height="800" fill="url(%23grad1)"/></svg>');
    background-size: cover;
    opacity: 0.6;
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-family: "Lora", serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    font-size: 1rem;
    color: #fff;
    max-width: 900px;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.6s both;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}

.redes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 1rem 0 2rem 0;
    animation: fadeInUp 1s ease-out 0.7s both;
}
.redes a {
    display: block;
    line-height: 0;
    transition: transform 0.25s ease;
}
.redes img {
    width: 34px;
    height: 34px;
    display: block;
}
.redes a:hover {
    transform: translateY(-4px);
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 0.95rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    display: inline-block;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(46, 84, 166, 0.4);
}
.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(46, 84, 166, 0.5);
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ============================================================================
   ABOUT SECTION - RESPONSIVE
   ============================================================================ */

.about-section {
    padding: 6rem 2rem 7rem;
    background: linear-gradient(135deg, #002244 0%, #003366 40%, #0055cc 70%, #00a3cc 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 70%, rgba(0, 163, 204, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.05) 45%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.section-container {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    margin-top: 1rem;
}

.section-subtitle {
    color: #60a5fa;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: "Lora", serif;
    font-size: 2rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.about-main-content {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 4.5rem;
    min-height: 480px;
}

.about-text {
    font-size: 1.12rem;
    color: #e0f2fe;
    line-height: 1.9;
    padding-right: 1rem;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: #60a5fa;
    font-weight: 700;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 85, 204, 0.22);
    transition: transform 0.4s ease;
    max-width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: translateY(-6px);
}

.about-image:hover img {
    transform: scale(1.04);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1180px;
}

.stat-card {
    background: linear-gradient(135deg, #0055cc 0%, #3b82f6 100%);
    padding: 2.2rem 1.6rem;
    border-radius: 22px;
    text-align: center;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.22);
}

.stat-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.35);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-family: "Lora", serif;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.95;
}

/* ============================================================================
   SERVICES SECTION - RESPONSIVE MEJORADO
   ============================================================================ */

.services-section {
    padding: 6rem 3rem 8rem;
    background: linear-gradient(135deg, #002244 0%, #003366 40%, #0055cc 70%, #00a3cc 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 70%, rgba(0, 163, 204, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.services-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

.services-title {
    font-family: "Lora", serif;
    font-size: 3.2rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.8rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.services-subtitle {
    color: #60a5fa;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin: 0;
}

/* 🔹 GRID MÁS ANCHO */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.2rem;
    position: relative;
    z-index: 2;
}

/* 🔹 CARD MÁS BAJA Y MÁS ANCHA */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.2rem 1.8rem 2.5rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
    text-align: center;
    backdrop-filter: blur(6px);
    min-height: 390px; /* MÁS BAJA */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #0055cc 0%, #3b82f6 50%, #00a3cc 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 85, 204, 0.25);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* 🔹 IMAGEN MÁS PROPORCIONADA */
.service-icon {
    width: 240px; /* MÁS ANCHA */
    height: 120px; /* UN POCO MÁS BAJA */
    margin: 0.3rem auto 1.2rem;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s ease;
    background: rgba(0, 85, 204, 0.06);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #002244;
    margin: 0.2rem 0 0.9rem;
    font-family: "Lora", serif;
    line-height: 1.2;
}

.service-description {
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    flex-grow: 1;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}

/* 🔹 BOTÓN MÁS ESTILIZADO */
.btn-service {
    background: transparent;
    color: #0055cc;
    border: 2px solid #0055cc;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.35s ease;
    margin-top: auto;
}

.btn-service:hover {
    background: linear-gradient(135deg, #0055cc 0%, #3b82f6 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 85, 204, 0.35);
    border-color: transparent;
}
/* ============================================================================
   CONTACT SECTION - RESPONSIVE
   ============================================================================ */

.contact-section {
    padding: 3.5rem 2rem 3rem;
    background: linear-gradient(135deg, #002244 0%, #003366 40%, #0055cc 70%, #00a3cc 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 70%, rgba(0, 163, 204, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.05) 45%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.contact-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to top, rgba(0, 34, 68, 0.5) 0%, transparent 100%);
    opacity: 0.7;
    z-index: 1;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    margin-top: 3rem;
}

.section-lead {
    font-size: 1.02rem;
    color: #e0f2fe;
    line-height: 1.5;
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr; /* 🔥 más ancho el form */
    gap: 2rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0055cc 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 85, 204, 0.25);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-details h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.contact-details p,
.contact-details b {
    color: #e0f2fe;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

.contact-details a {
    color: var(--white);
    text-decoration: none;
}

.contact-details a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Formulario */
.contact-form {
    background: rgba(255, 255, 255, 0.94);
    padding: 1.1rem 1.3rem; /* 🔥 menos alto */
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 85, 204, 0.08);
    backdrop-filter: blur(6px);
}

.form-group {
    margin-bottom: 0.65rem; /* 🔥 más compacto */
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #002244;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #f9fafb;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0055cc;
    box-shadow: 0 0 0 3px rgba(0, 85, 204, 0.12);
    background: white;
}

.form-group textarea {
    min-height: 65px; /* 🔥 menos alto */
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #0055cc 0%, #3b82f6 100%);
    color: white;
    padding: 0.9rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 18px rgba(0, 85, 204, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.8rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 85, 204, 0.35);
}

/* Redes en contacto */
.contact-redes.redes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin: 1.8rem 0 0 0;
    justify-content: flex-start;
}

.contact-redes.redes img {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.contact-redes.redes a {
    display: block;
    line-height: 0;
    transition: transform 0.25s ease;
}

.contact-redes.redes a:hover {
    transform: translateY(-4px);
}

/* Feedback visual del formulario */
.contact-form form {
    transition: all 0.4s ease;
    padding: 20px;
    border-radius: 12px;
}

.contact-form form.success {
    background: rgba(40, 167, 69, 0.08);
    border: 2px solid #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.contact-form form.error {
    background: rgba(220, 53, 69, 0.08);
    border: 2px solid #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Notificación flotante bonita de éxito */
#success-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #2e54a6 0%, #3b68c6 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(46, 84, 166, 0.4);
    z-index: 2000;
    transform: translateY(-120px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    font-weight: 500;
    font-size: 1.05rem;
    max-width: 380px;
}

#success-toast.show-toast {
    transform: translateY(0);
    opacity: 1;
}

#success-toast svg {
    stroke: white;
    flex-shrink: 0;
}

/* Mejora visual del formulario en éxito */
.contact-form form.success {
    background: linear-gradient(135deg, rgba(46, 84, 166, 0.06) 0%, rgba(59, 104, 198, 0.04) 100%);
    border: 2px solid #3b68c6;
    box-shadow: 0 0 0 4px rgba(59, 104, 198, 0.15);
    position: relative;
}

.contact-form form.success::before {
    content: "✓ Mensaje enviado";
    position: absolute;
    top: -14px;
    left: 24px;
    background: #3b68c6;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================================================
   FOOTER - RESPONSIVE
   ============================================================================ */

.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgb(255, 255, 255);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: "Lora", serif;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

/* Redes en footer */
.footer-redes.redes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 1.8rem;
    justify-content: flex-start;
}

.footer-redes.redes img {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 10px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-redes.redes a:hover img {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.3) drop-shadow(0 4px 8px rgba(46, 84, 166, 0.4));
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgb(255, 255, 255);
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================================
   WHATSAPP FLOAT BUTTON
   ============================================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.whatsapp-bubble {
    position: fixed;
    bottom: 45px;
    right: 100px;
    background: #ffffff;
    color: #111;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(140px) scale(0.75);
    transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
    z-index: 999;
}

.whatsapp-bubble::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 25px;
    border: 8px solid transparent;
    border-top-color: #ffffff;
}

.whatsapp-bubble.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Tablets grandes y laptops pequeñas (1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .about-main-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }

    .about-text {
        padding-right: 0;
        text-align: center;
    }

    .about-image img {
        max-height: 380px;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    /* Navegación */
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .logo {
        height: 60px;
    }

    /* Hero - mejorado para tablets */
    .hero {
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Botones lado a lado en tablets */
    .hero-buttons {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        flex: 1;
        min-width: 160px;
        text-align: center;
        padding: 0.9rem 1.5rem;
    }

    .redes {
        justify-content: flex-start;
        gap: 1.2rem;
    }

    /* Secciones */
    .section-title {
        font-size: 2.4rem;
    }

    .about-section,
    .services-section {
        padding: 5rem 1.5rem;
    }

    .contact-section {
        padding: 3rem 1.5rem 2.5rem;
    }

    .about-image img {
        max-height: 320px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .service-icon {
        width: 200px;
        height: 125px;
        margin: 0.3rem auto 1.2rem;
    }

    .service-card {
        padding: 1.2rem 1.8rem 2.8rem;
        min-height: 420px;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-icon svg {
        width: 18px;
        height: 18px;
    }

    .contact-redes.redes {
        justify-content: center;
    }

    .footer-redes.redes {
        justify-content: center;
        gap: 1.8rem;
        margin-top: 1.5rem;
    }

    .footer-redes.redes img {
        width: 38px;
        height: 38px;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-bubble {
        font-size: 13px;
        padding: 8px 14px;
        right: 80px;
    }
}

/* Móviles (576px) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    /* Hero - optimizado para móviles */
    .hero {
        padding-top: 90px;
        padding-bottom: 1.5rem;
    }

    .hero-content {
        padding: 0 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.25;
        margin-bottom: 1.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
        line-height: 1.6;
    }

    /* BOTONES LADO A LADO EN MÓVILES - Optimizado */
    .hero-buttons {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-buttons .btn {
        flex: 1;
        min-width: 145px;
        max-width: calc(50% - 0.4rem);
        padding: 0.85rem 1.2rem;
        font-size: 0.88rem;
        white-space: nowrap;
        text-align: center;
    }

    /* Redes sociales centradas en móvil */
    .redes {
        justify-content: flex-start;
        gap: 1rem;
        margin: 1.2rem 0 1.8rem 0;
    }

    .redes img {
        width: 32px;
        height: 32px;
    }

    /* Secciones */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .about-section {
        padding: 5rem 1.5rem 6rem;
    }

    .about-image img {
        max-height: 280px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .services-section {
        padding: 5.5rem 1.5rem 7.5rem;
    }

    .services-title {
        font-size: 2.5rem;
    }

    .services-header {
        margin-bottom: 3.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .service-card {
        padding: 1.1rem 1.6rem 2.6rem;
        min-height: auto;
    }

    .service-icon {
        width: 180px;
        height: 110px;
        margin: 0.3rem auto 1rem;
    }

    .service-title {
        font-size: 1.55rem;
        margin: 0.2rem 0 0.9rem;
    }

    .service-description {
        font-size: 1rem;
        margin-bottom: 1.4rem;
    }

    /* Contacto */
    .contact-section {
        padding: 3rem 1rem 2.5rem;
    }

    .section-lead {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.9rem; /* 🔥 más compacto */
        font-size: 0.92rem;
    }

    .btn-submit {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        gap: 2.5rem;
        margin-bottom: 2rem;
    }
}

/* Móviles muy pequeños (400px) */
@media (max-width: 400px) {
    .nav-container {
        padding: 1rem 1.2rem;
        gap: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Botones más compactos en pantallas muy pequeñas */
    .hero-buttons {
        gap: 0.6rem;
    }

    .hero-buttons .btn {
        min-width: 135px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Redes más pequeñas */
    .redes {
        gap: 0.9rem;
        margin: 1rem 0 1.5rem 0;
    }

    .redes img {
        width: 30px;
        height: 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .logo {
        height: 50px;
    }

    .service-icon {
        width: 160px;
        height: 100px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}

/* Móviles extremadamente pequeños (350px o menos) */
@media (max-width: 350px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    /* En pantallas muy pequeñas, botones apilados */
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .redes img {
        width: 28px;
        height: 28px;
    }
}

/* ============================================================================
   LANDSCAPE ORIENTATION (dispositivos en horizontal)
   ============================================================================ */

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 90px;
        padding-bottom: 1.5rem;
    }

    .hero-content {
        padding: 0 2rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .redes {
        margin: 1rem 0 1.5rem 0;
        gap: 1rem;
    }

    .redes img {
        width: 28px;
        height: 28px;
    }
}

/* Landscape para pantallas pequeñas */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .navbar,
    .whatsapp-float,
    .whatsapp-bubble,
    .hero-buttons,
    .btn,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero,
    .about-section,
    .services-section,
    .contact-section {
        page-break-inside: avoid;
    }
}

/* ============================================================================
   ACCESIBILIDAD
   ============================================================================ */

/* Mejora el contraste para personas con baja visión */
@media (prefers-contrast: high) {
    .hero-description,
    .about-text,
    .contact-details p {
        color: #ffffff;
    }

    .btn {
        border-width: 3px;
    }
}

/* Reduce animaciones para personas sensibles al movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus visible para navegación por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}
