/* =========================================
   GBM Tenis - Modern Stylesheet
   Colors: #2b5d97 (Blue), #d36643 (Orange), #ffffff (White)
   ========================================= */

:root {
    --primary: #2b5d97;
    --primary-dark: #1e426e;
    --primary-light: #4477b3;
    
    --accent: #d36643;
    --accent-hover: #b85433;
    
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-text: #1a1a1a;
    --gray-text: #555555;
    --border-color: #eaeaea;
    
    --nav-height: 110px;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(43, 93, 151, 0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.title-divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent);
    margin: 0.5rem 0 1.5rem 0;
    border-radius: 2px;
}

.title-divider.center {
    margin: 0.5rem auto 1.5rem auto;
}

.lead {
    font-size: 1.25rem;
    color: var(--gray-text);
    font-weight: 500;
    margin-bottom: 1rem;
}

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

/* =========================================
   Layout & Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

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

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mt-4 {
    margin-top: 2rem;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(211, 102, 67, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(211, 102, 67, 0.5);
    color: var(--white);
}

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

.btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(43, 93, 151, 0.4);
    color: var(--white);
}

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

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

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

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: 90px;
}

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

.logo {
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.navbar.scrolled .logo {
    color: var(--primary);
}

.logo-text {
    color: inherit;
}

.logo-dot {
    color: var(--accent);
    font-weight: 400;
    font-size: 1.5rem;
    margin-left: 2px;
}

.header-logo-img {
    height: 90px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .header-logo-img {
    height: 70px; /* Shrinks logo slightly when navbar shrinks */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--white);
    position: relative;
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--primary-dark);
}

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

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

.navbar.scrolled .nav-link:hover {
    color: var(--accent);
}

.btn-contact {
    background-color: var(--accent);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger, 
.hamburger::before, 
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .hamburger, 
.navbar.scrolled .hamburger::before, 
.navbar.scrolled .hamburger::after {
    background-color: var(--primary);
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-toggle.active .hamburger {
    background-color: transparent !important;
}

.mobile-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* =========================================
   Hero Section (Parallax)
   ========================================= */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    transform: translateZ(0); /* For performance */
    will-change: transform;
}

.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 66, 110, 0.85) 0%, rgba(43, 93, 151, 0.6) 100%);
    z-index: 1;
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* =========================================
   About Section
   ========================================= */
.feature-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(43, 93, 151, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-list li:hover .feature-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.feature-desc {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 1rem;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background-color: var(--accent);
    border-radius: 20px;
    z-index: -1;
    transform: translate(20px, 20px);
}

.radius-img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    /* Optional: Provide a horizontal aspect ratio if needed, or leave it natural */
    aspect-ratio: 16/9;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.exp-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.exp-text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

/* =========================================
   Quote Section (Parallax Divider)
   ========================================= */
.quote-section {
    padding: 8rem 0;
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 66, 110, 0.8);
    z-index: 1;
}

.testimonial-quote {
    font-size: 2.2rem;
    font-style: italic;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.5;
    font-family: sans-serif;
}

/* =========================================
   Classes Section (Cards)
   ========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    top: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-features {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.card-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
}

/* =========================================
   Facilities Section (Masonry-like)
   ========================================= */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
    position: relative;
}

.grid-img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.grid-img:hover {
    transform: scale(1.03);
    z-index: 2;
}

.img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.img-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.img-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-section {
    padding: 6rem 0;
    background-color: var(--primary-dark);
    color: var(--white);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%232b5d97" fill-opacity="0.2"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.contact-grid {
    position: relative;
    z-index: 2;
}

.contact-info h2 {
    color: var(--white);
    font-size: 3rem;
}

.contact-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

.contact-icon {
    font-size: 1.5rem;
    background-color: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item p {
    margin: 0;
    margin-top: 5px;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--white);
}

.social-icon:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(43, 93, 151, 0.1);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: #122135; /* Darker than primary for contrast */
    color: rgba(255,255,255,0.7);
    padding: 2rem 0;
}

/* =========================================
   Animations Classes  (Triggered by JS Intersection Observer)
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: opacity, transform;
}

.slide-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.zoom-in {
    transform: scale(0.9);
}

/* Active Class */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* =========================================
   Floating Social Icons
   ========================================= */
.floating-socials {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-icon.whatsapp {
    background-color: #25D366;
}

.social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    color: var(--white);
}

/* =========================================
   Promo Titles
   ========================================= */
.promo-title-container {
    text-align: center;
    margin-bottom: 30px;
}
.promo-title {
    font-family: 'Play', sans-serif;
    font-size: 48px;
    color: #2b5d97;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 2px;
}
.promo-subtitle-container {
    margin-top: 10px;
}
.promo-subtitle {
    font-family: 'Play', sans-serif;
    font-size: 32px;
    color: #f26522;
    background: transparent;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
}
.promo-subtitle span {
    color: #fff;
    background: #0d2449;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    transform: rotate(-4deg);
    margin-left: 8px;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    border-bottom: none;
}

.promo-cards-container, .promo-cards-container * {
    box-sizing: border-box;
}
.promo-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Play', sans-serif;
    flex-wrap: wrap;
}

/* =========================================
   Promo Vampiro
   ========================================= */
.promo-card-vampiro {
    background: transparent;
    border: none;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    color: #fff;
    box-shadow: 0 0 25px rgba(163, 75, 246, 0.7); /* Glow más fuerte */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.promo-card-vampiro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Gradiente continuo morado vibrante */
    background: conic-gradient(from 0deg, #6c12c4, #a34bf6, #e899ff, #a34bf6, #6c12c4);
    animation: rotarBorde 3s linear infinite;
    z-index: -2;
}

.promo-card-vampiro::after {
    content: '';
    position: absolute;
    inset: 4px; /* Borde ligeramente más grueso */
    background: #0d1230;
    border-radius: 12px;
    z-index: -1;
}

.promo-card-vampiro > * {
    position: relative;
    z-index: 2;
}
.vampiro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.vampiro-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 10px #a34bf6;
}
.vampiro-time {
    background: #a34bf6;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}
.vampiro-prices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vampiro-price-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1c2759;
    padding: 8px 10px;
    border-radius: 10px;
    border-left: 5px solid #00a8ff;
    text-align: center;
}
.vampiro-cancha {
    font-size: 14px;
    font-weight: bold;
    color: #00a8ff;
    margin-bottom: 5px;
}
.vampiro-price-main {
    text-align: center;
    margin-bottom: 5px;
}
.vampiro-price-main .price {
    color: #f26522;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}
.vampiro-price-main .desc {
    font-size: 9px;
    color: #ccc;
    margin-top: 2px;
}
.vampiro-price-old {
    text-align: center;
    padding-top: 5px;
    border-top: 1px dashed rgba(255,255,255,0.2);
    width: 100%;
}
.vampiro-price-old .desc {
    font-size: 9px;
    color: #ccc;
    margin-bottom: 2px;
}
.vampiro-price-old .price {
    font-size: 14px;
    text-decoration: line-through;
    text-decoration-color: #ff3333;
    text-decoration-thickness: 2px;
    color: #aaa;
    font-weight: bold;
    line-height: 1;
}
/* Murcielagos SVG y Ojos Vampiro */
.vamp-eye {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 8px 3px rgba(255, 0, 0, 0.8);
    z-index: 10;
    animation: palpitarOjo 2s infinite alternate;
}
.murcielago-svg {
    position: absolute;
    z-index: 5;
    animation: aleteoMurcielago 3s ease-in-out infinite alternate;
}
.murcielago-svg.bat-1 {
    top: 10px;
    left: 120px;
    width: 60px;
}
.murcielago-svg.bat-2 {
    bottom: 20px;
    right: 5px;
    width: 45px;
    animation-delay: -1.5s;
    animation-duration: 2.5s;
}
.murcielago-svg.bat-3 {
    top: 60px;
    left: -10px;
    width: 35px;
    animation-delay: -0.5s;
    animation-duration: 3.5s;
}

@keyframes palpitarOjo {
    0% { transform: scale(1); box-shadow: 0 0 6px 2px rgba(255, 0, 0, 0.6); }
    100% { transform: scale(1.3); box-shadow: 0 0 12px 5px rgba(255, 0, 0, 1); }
}
@keyframes aleteoMurcielago {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-10px) scale(1.05) rotate(2deg); }
    100% { transform: translateY(0) scale(1) rotate(-2deg); }
}
@keyframes rotarBorde {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .layout-grid.reverse-mobile .facilities-text {
        order: -1;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .experience-badge {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem; /* Adjust padding on mobiles to keep the toggle well within the screen */
    }

    .mobile-toggle {
        display: block;
        margin-right: 10px; /* Force the toggle slightly left */
    }
    
    .header-logo-img {
        height: 70px; /* Adjusted logo on mobile to prevent overflow but remain legible */
    }
    
    .navbar.scrolled .header-logo-img {
        height: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--primary-dark);
        padding: 6rem 2rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .navbar.scrolled .nav-link {
        color: var(--white);
    }
    
    .btn-contact {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .grid-img {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        height: 250px;
    }
    
    .contact-form {
        padding: 2rem;
    }

    /* Reducir tamaño de iconos sociales en móviles */
    .floating-socials {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    /* Ajustes Promo Vampiro para móviles */
    .promo-title {
        font-size: 32px;
    }
    .promo-subtitle {
        font-size: 20px;
        padding: 4px 10px;
    }
    .promo-subtitle span {
        font-size: 16px;
        padding: 3px 8px;
        margin-left: 5px;
    }
    
    .promo-card-vampiro .vampiro-body {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .promo-card-vampiro .vampiro-image {
        flex: 0 0 auto !important;
        width: 140px;
        margin: 0 auto;
    }
    .murcielago-svg.bat-1 {
        left: 10px !important;
    }
    .murcielago-svg.bat-3 {
        left: 10px !important;
    }
}

/* Prevención de desborde horizontal global */
html, body {
    overflow-x: hidden;
    width: 100%;
}
