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

:root {
    --primary-red: #d32f2f;
    --dark-red: #b71c1c;
    --light-red: #ffcdd2;
    --black: #212121;
    --dark-gray: #424242;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --whatsapp-green: #25d366;
    --whatsapp-dark-green: #128c7e;
    --gradient-start: #ffebee;
    --gradient-end: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 50%, var(--light-gray) 100%);
    background-attachment: fixed;
}

/* Navbar Fijo */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.25rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--black);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

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

.whatsapp-btn {
    background: var(--whatsapp-green);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: var(--whatsapp-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    font-size: 1.2rem;
}

.whatsapp-text {
    display: inline;
}

/* Hero Section */
.hero {
    margin-top: 95px;
    padding: 4rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    color: var(--black);
}

.title-accent {
    display: block;
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

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

/* Hero Image con AnimaciÃ³n */
.hero-image {
    position: relative;
    height: 500px;
    animation: fadeInRight 1s ease;
}

.animated-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-red);
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--light-red);
    bottom: 100px;
    right: 50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--primary-red);
    top: 200px;
    right: 150px;
    animation-delay: 4s;
}

.hero-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(211, 47, 47, 0.3);
}

.hero-illustration i {
    font-size: 8rem;
    color: var(--white);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

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

/* SecciÃ³n de Servicios */
.services {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.5);
}

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

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

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

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(211, 47, 47, 0.2);
    border-color: var(--primary-red);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(10deg) scale(1.1);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.service-preview {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
    transform: translateX(10px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    -webkit-overflow-scrolling: touch;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(211, 47, 47, 0.2);
}

.close-modal:hover {
    color: var(--primary-red);
}

.modal-body {
    text-align: center;
}

.modal-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.modal-icon i {
    font-size: 3rem;
    color: var(--white);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.modal-description {
    color: var(--dark-gray);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.modal-btn {
    margin-top: 1rem;
}

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

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

/* Sección de Galería */
/* GALERÍA DESACTIVADA TEMPORALMENTE - Para reactivar, quitar display: none del HTML */
.gallery {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    /* display: none; - Descomentar esta línea si quieres ocultarla desde CSS en lugar de HTML */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(211, 47, 47, 0.2);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.85), rgba(183, 28, 28, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Modal de Galería (Lightbox) */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-x pan-y;
    transform-origin: center center;
}

.gallery-caption {
    display: none; /* Ocultar el caption */
}

.gallery-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.gallery-close:hover {
    color: var(--primary-red);
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.gallery-prev {
    left: 2rem;
}

.gallery-next {
    right: 2rem;
}

.gallery-prev:hover,
.gallery-next:hover {
    color: var(--primary-red);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

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

/* Sección de Contacto */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 235, 238, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(211,47,47,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* WhatsApp Hero Section */
.whatsapp-hero {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    border-radius: 30px;
    padding: 4rem 3rem;
    text-align: center;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.whatsapp-icon-large {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.whatsapp-icon-large i {
    font-size: 4rem;
    color: var(--white);
}

.whatsapp-hero h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.whatsapp-hero > p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.whatsapp-btn-large {
    background: var(--white);
    color: var(--whatsapp-green);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.whatsapp-btn-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn-large i:first-child {
    font-size: 1.8rem;
}

.whatsapp-btn-large i:last-child {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.whatsapp-btn-large:hover i:last-child {
    transform: translateX(5px);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(211, 47, 47, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.03) 0%, rgba(183, 28, 28, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.contact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(211, 47, 47, 0.15);
    border-color: rgba(211, 47, 47, 0.3);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover::after {
    transform: scaleX(1);
}

.contact-card > * {
    position: relative;
    z-index: 2;
}

.contact-card-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    position: relative;
}

.contact-card-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover .contact-card-icon {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.contact-card:hover .contact-card-icon::before {
    opacity: 1;
}

.contact-card-icon.phone {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.contact-card-icon.email {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.contact-card-icon.location {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
}

.contact-card-icon i {
    font-size: 2.8rem;
    color: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.contact-card h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.contact-card p {
    color: var(--dark-gray);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 500;
}

.contact-action {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.08) 0%, rgba(183, 28, 28, 0.08) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(211, 47, 47, 0.2);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.contact-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.contact-action span,
.contact-action i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.contact-action:hover {
    color: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.3);
}

.contact-action:hover::before {
    left: 0;
}

.contact-action i {
    font-size: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-action:hover i {
    transform: translateX(4px);
}

/* WhatsApp Alternative */
.whatsapp-alternative {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.whatsapp-alternative p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.whatsapp-btn-secondary {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn-secondary i {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

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

    .nav-link {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-btn {
        padding: 0.75rem;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
        min-width: 50px;
    }

    .whatsapp-btn i {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .logo {
        height: 50px;
    }

    .logo-img {
        max-width: 180px;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .hero {
        margin-top: 60px;
        padding: 2.5rem 0;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-image {
        order: 1;
        height: 280px;
        margin-top: 0;
        margin-bottom: 1rem;
    }

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

    .title-main, .title-accent {
        display: block;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.7;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }

    .hero-illustration {
        width: 200px;
        height: 200px;
    }

    .hero-illustration i {
        font-size: 5rem;
    }

    .animated-shape {
        display: none;
    }

    .services {
        padding: 3.5rem 0;
    }

    .gallery {
        padding: 3.5rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .gallery-item {
        border-radius: 12px;
    }

    .service-card {
        padding: 2rem 1.5rem;
        border-radius: 15px;
        text-align: center;
    }

    .service-icon {
        width: 75px;
        height: 75px;
        margin-bottom: 1.25rem;
        margin-left: auto;
        margin-right: auto;
    }

    .service-icon i {
        font-size: 2.2rem;
    }

    .service-title {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .service-arrow {
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .contact {
        padding: 3.5rem 0;
        background: var(--white) !important;
    }

    .contact-container {
        padding: 0 1.5rem;
    }

    .contact-header {
        margin-bottom: 2.5rem;
    }

    .contact-content {
        gap: 2.5rem;
    }

    .whatsapp-hero {
        padding: 3rem 2rem;
        border-radius: 20px;
    }

    .whatsapp-icon-large {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .whatsapp-icon-large i {
        font-size: 3rem;
    }

    .whatsapp-hero h3 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .whatsapp-hero > p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .whatsapp-btn-large {
        padding: 1.1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 100%;
    }

    .whatsapp-btn-large i:first-child {
        font-size: 1.5rem;
    }

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

    .contact-card {
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }

    .contact-card-icon {
        width: 85px;
        height: 85px;
        margin-bottom: 1.75rem;
    }

    .contact-card-icon i {
        font-size: 2.6rem;
    }

    .contact-card h4 {
        font-size: 1.5rem;
    }

    .contact-card p {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
    }

    .contact-action {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
    }

    .whatsapp-alternative {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
        max-height: 90vh;
        border-radius: 20px;
    }

    .close-modal {
        top: 0.75rem;
        right: 1rem;
        font-size: 2rem;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .modal-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .modal-description ul {
        margin-top: 1rem;
        padding-left: 1.25rem;
    }

    .modal-description li {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        height: 45px;
    }

    .logo-img {
        max-width: 150px;
    }

    .navbar {
        padding: 0.6rem 0;
    }

    .nav-menu {
        top: 57px;
        height: calc(100vh - 57px);
        padding-top: 2rem;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.875rem 1rem;
    }

    .whatsapp-btn {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .whatsapp-btn i {
        font-size: 1.4rem;
    }

    .hero {
        margin-top: 57px;
        padding: 2rem 0;
    }

    .hero-container {
        padding: 0 1rem;
        gap: 2rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.75rem;
        padding: 0;
    }

    .hero-image {
        height: 220px;
    }

    .hero-illustration {
        width: 160px;
        height: 160px;
    }

    .hero-illustration i {
        font-size: 4rem;
    }

    .btn {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .services {
        padding: 3rem 0;
    }

    .gallery {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0;
    }

    .services-grid {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .gallery-item {
        border-radius: 12px;
    }

    .gallery-overlay i {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 1.75rem 1.25rem;
        border-radius: 15px;
        text-align: center;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1rem;
        border-radius: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .service-icon i {
        font-size: 1.9rem;
    }

    .service-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .service-arrow {
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .contact {
        padding: 3rem 0;
        background: var(--white) !important;
    }

    .contact-container {
        padding: 0 1rem;
    }

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

    .contact-content {
        gap: 2rem;
    }

    .whatsapp-hero {
        padding: 2.5rem 1.5rem;
        border-radius: 15px;
    }

    .whatsapp-icon-large {
        width: 85px;
        height: 85px;
        margin-bottom: 1.25rem;
    }

    .whatsapp-icon-large i {
        font-size: 2.5rem;
    }

    .whatsapp-hero h3 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .whatsapp-hero > p {
        font-size: 1rem;
        margin-bottom: 1.75rem;
        line-height: 1.6;
    }

    .whatsapp-btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .whatsapp-btn-large i:first-child {
        font-size: 1.3rem;
    }

    .contact-grid {
        gap: 1.25rem;
    }

    .contact-card {
        padding: 1.75rem 1.25rem;
        border-radius: 15px;
    }

    .contact-card-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1.25rem;
        border-radius: 15px;
    }

    .contact-card-icon i {
        font-size: 1.9rem;
    }

    .contact-card h4 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .contact-card p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }

    .contact-action {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .whatsapp-alternative {
        padding: 1.25rem;
        border-radius: 15px;
    }

    .whatsapp-alternative p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .whatsapp-btn-secondary {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        padding: 1.75rem 1rem;
        margin: 0.75rem;
        width: calc(100% - 1.5rem);
        border-radius: 15px;
        max-height: 92vh;
    }

    .close-modal {
        top: 0.5rem;
        right: 0.75rem;
        font-size: 1.75rem;
        width: 32px;
        height: 32px;
    }

    .modal-icon {
        width: 75px;
        height: 75px;
        margin-bottom: 1.25rem;
        border-radius: 15px;
    }

    .modal-icon i {
        font-size: 2.2rem;
    }

    .modal-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .modal-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }

    .modal-description p {
        margin-bottom: 0.75rem;
    }

    .modal-description ul {
        margin-top: 0.75rem;
        padding-left: 1.1rem;
    }

    .modal-description li {
        margin-bottom: 0.4rem;
        line-height: 1.6;
    }

    .modal-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer p {
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    .gallery-modal-content {
        max-width: 98%;
        max-height: 75vh;
    }

    .gallery-close {
        top: 0.75rem;
        right: 1rem;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .gallery-prev,
    .gallery-next {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .gallery-prev {
        left: 0.5rem;
    }

    .gallery-next {
        right: 0.5rem;
    }

    .gallery-caption {
        font-size: 0.9rem;
        margin-top: 0.75rem;
        padding: 0 0.75rem;
    }
}

/* iPhone específico - iPhone 12 Pro, 13, 14, etc. */
@media (max-width: 390px) {
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
    }

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

    .whatsapp-hero h3 {
        font-size: 1.65rem;
    }

    .service-card {
        padding: 1.5rem 1.1rem;
    }

    .contact-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .contact-card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }

    .contact-card-icon i {
        font-size: 2rem;
    }

    .contact-card h4 {
        font-size: 1.2rem;
    }

    .contact-card p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .contact-action {
        padding: 0.8rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* iPhone SE y pantallas muy pequeñas */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .logo-img {
        max-width: 130px;
    }

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

    .whatsapp-hero {
        padding: 2rem 1.25rem;
    }

    .whatsapp-hero h3 {
        font-size: 1.6rem;
    }

    .whatsapp-hero > p {
        font-size: 0.95rem;
    }
}

/* iPhone en modo landscape */
@media (max-width: 896px) and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 1.5rem 0;
        margin-top: 57px;
    }

    .hero-container {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-image {
        height: 180px;
    }

    .hero-illustration {
        width: 140px;
        height: 140px;
    }

    .hero-illustration i {
        font-size: 3.5rem;
    }

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

    .services {
        padding: 2rem 0;
    }

    .contact {
        padding: 2rem 0;
        background: var(--white) !important;
    }
}

/* Mejoras generales para móviles */
@media (max-width: 768px) {
    /* Mejorar scroll en móviles */
    html {
        -webkit-overflow-scrolling: touch;
    }

    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Touch targets más grandes */
    .btn, .whatsapp-btn, .contact-action, .nav-link {
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(211, 47, 47, 0.2);
    }

    /* Mejorar legibilidad */
    .service-card, .contact-card {
        -webkit-tap-highlight-color: rgba(211, 47, 47, 0.1);
    }

    /* Prevenir zoom en inputs (si se agregan en el futuro) */
    input, textarea, select {
        font-size: 16px;
    }
}

/* Optimización para Android */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-title, .section-title {
        -webkit-font-smoothing: antialiased;
    }
}

/* Orientación landscape en móviles */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-container {
        gap: 1.5rem;
    }

    .hero-image {
        height: 200px;
    }
}