/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #2e64d6;
    --primary-dark: #1e3a8a;
    --primary-light: #5b86e5;
    --secondary-color: #0ea5e9;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

#logoVideo {
    max-width: 400px;
    width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

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

.navbar .logo img {
    height: 100px;
    transition: var(--transition);
}

.navbar .logo img:hover {
    transform: scale(1.05);
}

/* ===== TOP BAR ===== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    z-index: 1001;
}

.top-bar-phones {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.top-bar-phone {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-phone:hover {
    color: var(--primary-light);
    transform: translateY(-1px);
}

.top-bar-phone i {
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

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

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

/* CTA Animation para botón navbar */
.navbar .btn-primary {
    position: relative;
    overflow: hidden;
    animation: ctaPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(46, 100, 214, 0.3), 0 0 40px rgba(46, 100, 214, 0.4);
    transition: all 0.3s ease;
}

.navbar .btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: ctaShine 3s linear infinite;
    pointer-events: none;
}

.navbar .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(46, 100, 214, 0.6);
    animation: ctaPulseHover 0.8s ease-in-out infinite;
}

.navbar .btn-primary:hover::before {
    animation: ctaShineHover 1.5s linear infinite;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(46, 100, 214, 0.7), rgba(30, 58, 138, 0.7)), url('../img/hero.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* ===== SCROLL DOWN ANIMATED ===== */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 15;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.scroll-down span {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    transition: var(--transition);
}

.scroll-down i {
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
    transition: var(--transition);
}

.scroll-down:hover span {
    opacity: 1;
    transform: translateY(-3px);
}

.scroll-down:hover i {
    transform: translateY(3px);
}

/* ===== DIVISOR ESTÉTICO ===== */
.section-divider {
    height: 3px;
    background: var(--primary-color);
    width: 100%;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 200px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.6;
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ===== SERVICIOS ===== */
#servicios {
    background: linear-gradient(rgba(255, 255, 255, 0.705), rgba(172, 172, 172, 0.651)), url('https://images.unsplash.com/photo-1621905252507-b35492cc74b4?w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(252, 252, 252, 0.445), rgba(255, 255, 255, 0.507));
    z-index: 0;
}

#servicios .container {
    position: relative;
    z-index: 1;
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-light);
}

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

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--primary-light);
}

.service-icon i {
    display: inline-block;
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

/* Botón WhatsApp en service-card */
.service-card .btn {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 100, 214, 0.3);
}

.service-card .btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(46, 100, 214, 0.4);
    transform: translateY(-2px);
}

.service-card .btn i {
    margin-right: 0.5rem;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

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

.about-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-item ul {
    margin-left: 1.5rem;
    color: var(--text-light);
}

.about-item ul li {
    margin: 0.5rem 0;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

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

.section:has(.features-grid) {
    background: linear-gradient(rgba(255, 255, 255, 0.829), rgba(255, 255, 255, 0.822)), url('../img/why.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.section:has(.features-grid) .container {
    position: relative;
    z-index: 1;
}

/* ===== CTA CAÑERÍAS ===== */
.section-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    padding: 5rem 0;
}

.cta-content h2 {
    font-size: 1.8rem;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.cta-list {
    display: inline-flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.cta-list li {
    font-size: 1.2rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-list i {
    font-size: 1.5rem;
    color: #ffd700;
}

.cta-images {
    margin: 2.5rem auto;
    display: flex;
    gap: 1.5rem;
    max-width: 900px;
    justify-content: center;
}

.cta-image-item {
    flex: 1;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 5px solid var(--white);
    position: relative;
}

.cta-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(46, 100, 214, 0.9);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
}

.cta-button {
    margin-top: 2rem;
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.3);
    animation: ctaPulse 2s ease-in-out infinite;
}

.btn-white i {
    margin-right: 0.5rem;
    font-size: 1.4rem;
    color: #25D366;
}

.btn-white:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.5);
    animation: ctaPulseHover 0.8s ease-in-out infinite;
}

.btn-white:hover i {
    color: var(--white);
}

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

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

.feature-icon i {
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.2);
    color: var(--primary-light);
}

.feature-card:hover .feature-icon i {
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

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

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

/* ===== GALERÍA ===== */
/* ===== GALERÍA ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Patrón de fondo elegante para la sección de galería */
.section:has(.gallery-grid) {
    background-color: var(--bg-light);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(46, 100, 214, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(46, 100, 214, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(14, 165, 233, 0.10) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(46, 100, 214, 0.06) 50%, transparent 100%);
    background-size: 400px 400px, 400px 400px, 300px 300px, 100% 100%;
    background-position: 0 0, 200px 100px, 100px 0, 0 0;
    position: relative;
}

.section:has(.gallery-grid) .container {
    position: relative;
    z-index: 1;
}

.section:has(.gallery-grid)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(46, 100, 214, 0.05) 20px, rgba(46, 100, 214, 0.05) 21px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(14, 165, 233, 0.05) 20px, rgba(14, 165, 233, 0.05) 21px);
    pointer-events: none;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(46, 100, 214, 0.9);
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

/* ===== CONTACTO ===== */
#contacto {
    background: linear-gradient(rgba(46, 100, 214, 0.85), rgba(30, 58, 138, 0.85)), url('../img/contacto.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
}

#contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(46, 99, 214, 0.479), rgba(30, 59, 138, 0.418));
    z-index: 0;
}

#contacto .container {
    position: relative;
    z-index: 1;
}

#contacto .section-title {
    color: var(--white);
}

#contacto .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

#contacto .contact-item h4 {
    color: var(--white);
}

#contacto .contact-item p {
    color: rgba(255, 255, 255, 0.95);
}

#contacto .contact-item a {
    color: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
}

#contacto .contact-item a:hover {
    color: var(--white);
    text-decoration: underline;
}

#contacto .cta-box {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
}

#contacto .cta-box h3 {
    color: var(--primary-dark);
}

#contacto .cta-box p {
    color: var(--text-dark);
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
    color: var(--white);
    transition: var(--transition);
}

.contact-icon i {
    transition: var(--transition);
}

#contacto .contact-item:hover .contact-icon {
    transform: scale(1.2);
    color: var(--primary-light);
}

#contacto .contact-item:hover .contact-icon i {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

/* Animación CTA para el botón en .cta-box */
#contacto .cta-box .btn {
    position: relative;
    overflow: hidden;
    animation: ctaPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(46, 100, 214, 0.4);
    transition: all 0.3s ease;
}

#contacto .cta-box .btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: ctaShine 3s linear infinite;
    pointer-events: none;
}

#contacto .cta-box .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(46, 100, 214, 0.6);
    animation: ctaPulseHover 0.8s ease-in-out infinite;
}

#contacto .cta-box .btn:hover::before {
    animation: ctaShineHover 1.5s linear infinite;
}

@keyframes ctaPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(46, 100, 214, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 0 60px rgba(46, 100, 214, 0.5);
    }
}

@keyframes ctaPulseHover {
    0%, 100% {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(46, 100, 214, 0.6);
    }
    50% {
        transform: translateY(-5px) scale(1.08);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.6), 0 0 80px rgba(46, 100, 214, 0.7);
    }
}

@keyframes ctaShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes ctaShineHover {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ===== FORMULARIO DE CONTACTO ===== */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
}

.form-group input,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 100, 214, 0.1);
    transform: translateY(-2px);
}

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

/* Formulario dentro de la sección de contacto */
.contact-form-inline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contacto .contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#contacto .contact-form .form-group label {
    color: var(--primary-dark);
}

#contacto .contact-form .form-group input,
#contacto .contact-form .form-group textarea {
    background: var(--white);
    border: 2px solid #e5e7eb;
}

#contacto .contact-form .form-group input:focus,
#contacto .contact-form .form-group textarea:focus {
    border-color: var(--primary-color);
}

.mensaje-respuesta {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
}

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

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

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: var(--white);
    padding: 4rem 0 1rem;
    border-top: 3px solid var(--primary-color);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 140px;
    width: auto;
    border-radius: 15px;
    transition: var(--transition);
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-links,
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact li i {
    color: var(--primary-color);
    min-width: 20px;
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-tagline {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .about-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 100px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .navbar .btn-primary {
        display: none;
    }

    .top-bar {
        padding: 0.5rem 0;
        font-size: 0.85rem;
    }

    .top-bar-phones {
        gap: 1.5rem;
    }

    .hero {
        height: 100vh;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

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

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

    .section {
        padding: 3rem 0;
    }

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

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

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

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

    .service-card,
    .feature-card {
        padding: 2rem 1.5rem;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

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

    .cta-list li {
        font-size: 1.1rem;
    }

    .cta-images {
        gap: 1rem;
    }

    .btn-white {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

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

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

    .gallery-item img {
        height: 250px;
    }

    /* Footer Responsive */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 600px;
    }
}

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

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

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

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

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

    #logoVideo {
        width: 90%;
    }

    .service-card,
    .feature-card {
        padding: 1.5rem 1rem;
    }

    .cta-box {
        padding: 1.5rem 1rem;
    }

    .cta-box h3 {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.3rem;
        padding: 0 1rem;
    }

    .cta-list li {
        font-size: 1rem;
    }

    .cta-list i {
        font-size: 1.2rem;
    }

    .cta-images {
        flex-direction: column;
        align-items: center;
    }

    .cta-image-item {
        max-width: 350px;
    }

    .btn-white {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .about-text h2 {
        text-align: center;
    }

    /* Footer Responsive 480px */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-description {
        text-align: center;
        margin: 0 auto;
    }

    .footer-logo {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ===== UTILIDADES ADICIONALES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== ANIMACIONES MEJORADAS ===== */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

.zoom-in {
    animation: zoomIn 0.8s ease forwards;
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== ESTADOS DE LOADING ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Botón flotante de teléfono */
.phone-float {
    position: fixed;
    bottom: 110px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone-button {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(46, 100, 214, 0.4);
    transition: all 0.3s ease;
    animation: pulse-phone 2s ease-in-out infinite;
    border: 3px solid var(--white);
}

.phone-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(46, 100, 214, 0.6);
}

@keyframes pulse-phone {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(46, 100, 214, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(46, 100, 214, 0.8);
    }
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    background: var(--text-dark);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.whatsapp-tooltip.visible {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent var(--text-dark);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

/* Responsive para el botón de WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .whatsapp-tooltip {
        font-size: 0.8rem;
        padding: 10px 15px;
    }

    .navbar .logo img {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }

    .top-bar-phones {
        gap: 1rem;
    }

    .top-bar-phone {
        gap: 0.3rem;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    .navbar .logo img {
        height: 90px;
    }

    .phone-float {
        bottom: 75px;
        right: 15px;
    }

    .phone-button {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}

/* ===== MODAL TELÉFONO ===== */
.phone-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.phone-modal.active {
    display: flex;
    pointer-events: auto;
}

.phone-modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.phone-modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.phone-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phone-option {
    display: block;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.phone-option:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 100, 214, 0.4);
}

.phone-option i {
    margin-right: 0.5rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

@media (max-width: 480px) {
    .phone-modal-content {
        padding: 1.5rem;
    }

    .phone-modal-content h3 {
        font-size: 1.3rem;
    }

    .phone-option {
        font-size: 1rem;
        padding: 0.9rem;
    }
}

/* Ocultar scroll-down en PC con altura reducida */
@media (min-width: 768px) and (max-height: 675px) {
    .scroll-down {
        display: none;
    }
}

