/* Reset and Base Styles */
/* Variables */
:root {
    --primary-color: #3A78C2;
    --secondary-color: #EDF4FC;
    --tertiary-color: #1E3A70;
    --text-color: #333333;
    --light-text: #666666;
    --extra-light: #ebebeb;
    --white: #FFFFFF;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --large-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    html {
      interpolate-size: allow-keywords;
    }
  }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    margin-bottom: 1rem;
}

p, li, figcaption, details {
    max-width: 70ch;
}

@supports (text-wrap: balance) {
    h1, h2, h3, h4 {
        -webkit-text-wrap: balance;
        text-wrap: balance;
    }
}

@supports not (text-wrap: balance) {
    h1, h2, h3, h4 {
        hyphens: auto;
    }
}

@supports (text-wrap: pretty) {
    p, li, figcaption, details, summary {
        -webkit-text-wrap: pretty;
        text-wrap: pretty;
    }
}

@supports not (text-wrap: pretty) {
    p, li, figcaption, details, summary {
        hyphens: auto;
    }
}

details, summary {
    -webkit-text-wrap: pretty;
    text-wrap: pretty;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

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

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
}

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

.logo {
    width: 100px;
    fill: var(--white);
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}

.logo:hover {
    fill: var(--extra-light);
}

.logo svg {
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links.active {
    background-color: var(--tertiary-color);
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

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

.nav-link:hover {
    color: var(--extra-light);
}

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

.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    margin: 6px 0;
    transition: var(--transition);
    transform-origin: left center;
}

.mobile-menu.active span:first-child {
    transform: rotate(45deg);
    margin-bottom: 8px;
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu.active span:last-child {
    transform: rotate(-45deg);
    margin-top: 8px;
}

/* Header styles when scrolled */
.header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.header.scrolled .logo {
    fill: var(--text-color);
}

.header.scrolled .logo:hover {
    fill: var(--tertiary-color);
}

.header.scrolled .nav-link {
    color: #333;
    text-shadow: none;
}

.header.scrolled .nav-link:hover {
    color: #666;
}

.header.scrolled .mobile-menu span {
    background-color: #333;
    box-shadow: none;
}

/* Hero Section */
.hero {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

.hero .container {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    color: #fff;
    width: 500px;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #3A78C2 0%, #2D65A3 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
    background: linear-gradient(135deg, #2D65A3 0%, #3A78C2 100%);
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

/* Video Section */
.video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    border-radius: 0;
}

.video .container {
    height: 100%;
    padding: 0;
    border-radius: 0;
}

.video-cel {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.video-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

@media (max-width: 768px) {
    .video-hero {
        display: none;
    }
    .video-cel {
        display: block;
    }
}

/* Ensure other sections start after the video */
section:not(.hero):not(.video) {
    position: relative;
    z-index: 1;
}

/* Banner section styles */
.banner {
    padding: 2rem 0;
    color: white;
    text-align: center;
    background-color: var(--tertiary-color);
}

.banner-content {
    display: flex;
    justify-content: center;
    gap: 4rem;
    align-items: center;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-item i {
    font-size: 2.5rem;
    color: white;
}

.banner-item p {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .banner-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .banner-item:not(:last-child) {
        border-bottom: 1px solid var(--primary-color);
        padding-bottom: 2rem;
    }
    
    .banner-item i {
        font-size: 2rem;
    }
    
    .banner-item p {
        font-size: 1rem;
    }
}

.cta-banner {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--tertiary-color);
}

.cta-banner .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-banner h2 {
    color: white;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
    color: white;
}

.cta-banner .cta-button:hover {
    background-color: #1a4d8f; /* Darker shade on hover */
}

.cta-banner .cta-content {
    display: flex;
    align-items: top;
    justify-content: center;
    gap: 2rem;
    flex-direction: row-reverse; /* Make last child be first */
}

.cta-banner .cta-image {
    flex: 1;
}

.cta-banner .cta-text {
    flex: 2;
}

.cta-banner .cta-text p {
    text-align: center;
    font-size: 1rem;
}

.cta-banner .cta-text .cta-button {
    margin-top: 1rem;
}

.cta-banner .cta-image video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.meet-banner {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--tertiary-color);
}

.meet-banner h2 {
    color: white;
    text-align: left;
}

.meet-banner h2::after {
    left: 0;
    transform: none;
}

.meet-banner p {
    font-size: 1rem;
    text-align: left;
    margin-top: -1rem;
    margin-bottom: 2rem;
    color: white;
}

.meet-banner .cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-direction: row;
    flex: 2;
}

.meet-banner .cta-image {
    flex: 1;
}

.meet-banner .cta-text {
    flex: 2;
}

.meet-banner .cta-image video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 980px) {
    .meet-banner .cta-text {
        flex: 1;
    }
}

/* Responsive adjustments for meet-banner */
@media (max-width: 768px) {
    .meet-banner .cta-content {
        flex-direction: column;
        align-items: center;
    }

    .meet-banner .cta-image {
        margin-bottom: 1rem;
        flex: none;
    }

    .meet-banner .cta-text {
        text-align: center;
    }
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.about-blue {
    background-color: var(--tertiary-color);
    color: var(--white);
}

.about-blue .about-content {
    grid-template-columns: 0.6fr 0.4fr;
}

.about-blue .about-text h2 {
    color: var(--white);
}

.about-blue .about-text a {
    margin-top: 1rem;
}

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

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

.about-text h2::after {
    left: 0;
    transform: none;
}

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

.about-image video {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: 3rem 0 4rem 0;
    background-color: var(--secondary-color);
}

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

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--large-shadow);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 1rem 1rem 0 1rem;
    margin-bottom: 0;
}

.service-card p {
    padding: 0.5rem 1rem;
    color: var(--light-text);
}

/* Gallery Section */
.gallery {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.carousel-wrapper {
    width: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.carousel-wrapper i {
    font-size: 2rem;
    color: var(--primary-color);
    height: 50px;
    width: 50px;
    background-color: var(--white);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.carousel-wrapper i:first-child {
    left: -5px;
}

.carousel-wrapper i:last-child {
    right: -5px;
}

.carousel-wrapper i:hover {
    transform: translateY(-50%) translateX(var(--direction, 0));
    box-shadow: var(--large-shadow);
}

.carousel-wrapper i:first-child:hover {
    --direction: -5px;
}

.carousel-wrapper i:last-child:hover {
    --direction: 5px;
}

.carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 2.5) - 20px);
    gap: 20px;
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: none;
}

.carousel.dragging {
    cursor: grabbing;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-card {
    list-style: none;
    border-radius: 12px;
    cursor: pointer;
}

.carousel-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--large-shadow);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

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

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

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.info-item h4 {
    margin-bottom: 0.25rem;
}

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

.contact-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-social h4 {
    margin-bottom: 1rem;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--large-shadow)
}

.contact-form-container {
    background-color: var(--white);
    padding: 2rem 2rem 0.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

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

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

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

.required {
    color: #E53935;
    margin-left: 2px;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

select {
    background-color: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A90E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.submit-button:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
    background: linear-gradient(135deg, #357ABD 0%, #4A90E2 100%);
}

.submit-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.2);
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s;
}

.submit-button:hover::before {
    left: 100%;
}

#status-message {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #333;
    text-align: center;
    width: 100%;
}

/* ReCAPTCHA */

.grecaptcha-badge {
    position: fixed !important;
    bottom: 90px !important;
    z-index: 1000 !important;
}

/* Mapa */

.map-container {
    margin-top: 3rem;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* Footer */
.footer {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(media/espacios/comedor_1.jpg);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    width: 120px;
    margin-top: 0.3rem;
    fill: var(--white);
    grid-column: 1;
}

.footer-logo svg {
    transition: var(--transition);
}

.footer-logo svg:hover{
    fill: var(--primary-color);
}

.footer-section h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 6rem 0 1rem;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
}

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

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.copyright {
    margin-bottom: 0.5rem;
}

.copyright-line {
    display: inline;
}

.developer-signature {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-size: 0.85rem;
}

.developer-signature a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    background: linear-gradient(90deg, #4A90E2, #357ABD);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    position: relative;
    display: inline-block;
    font-style: normal;
}

.developer-signature a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #4A90E2, #357ABD);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.developer-signature a:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.developer-signature a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.developer-signature a {
    animation: gradientFlow 3s ease infinite;
    background-size: 200% auto;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.whatsapp-float i {
    font-size: 1.75rem;
    transition: var(--transition);
}

.whatsapp-text {
    position: absolute;
    right: 60px;
    background-color: #25D366;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-logo {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-bar {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        color: var(--text-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 90;
    }

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

    .mobile-menu {
        display: block;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 5rem;
        margin-bottom: -1rem;
    }

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

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

    .about .container .about-content .about-image {
        grid-row: 1;
        grid-column: 1;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .whatsapp-float i {
        font-size: 1.75rem;
    }

    .whatsapp-text {
        display: none;
    }

    .carousel {
        grid-auto-columns: calc((100% / 1.5) - 20px);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 6rem;
    }

    .hero h1 {
        font-size: 2rem;
        width: 300px;
        margin-bottom: -0.8rem;
    }

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

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .submit-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        flex-wrap: wrap;
    }

    .copyright-line {
        display: block;
    }
    
    .copyright-line:first-child {
        margin-bottom: 0.25rem;
    }
}

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(media/espacios/comedor_1.jpg);
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* About Story Section */
.about-story {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.about-story .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

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

.about-story .about-text h2::after {
    left: 0;
    transform: none;
}

.about-story .about-text p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

.about-story .about-image {
    height: 100%;
}

.about-story .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--large-shadow);
}

/* Mission and Vision Section */
.mission-vision {
    padding: 4rem 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(media/living_001.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-color);
}

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

.mission-vision-card {
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    color: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mission-vision-card:hover {
    transform: translateY(-5px);
}

.mission-vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.mission-vision-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Values Section */
.our-values {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

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

.value-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--large-shadow);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.value-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Team Section */
.our-team {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--extra-light) 100%);
    position: relative;
    overflow: hidden;
}

.our-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%234A90E2" fill-opacity="0.05"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.our-team .section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

.team-wrapper {
    position: relative;
    padding: 0 60px;
    margin: 0 auto;
    max-width: 1400px;
}

.team-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 20px);
    gap: 30px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 20px 0;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.team-grid.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.team-member {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(74, 144, 226, 0.9), rgba(74, 144, 226, 0));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-info {
    padding: 2rem;
    text-align: center;
    background: var(--white);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.member-info h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.member-info .position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.member-info .bio {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.team-member:hover .social-links {
    transform: translateY(0);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
}

.team-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 2rem;
    z-index: 1;
    box-shadow: var(--large-shadow);
    transition: var(--transition);
}

.team-arrow:hover {
    transform: translateY(-50%) translateX(var(--direction, 0));
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.team-arrow.prev {
    left: 20px;
}

.team-arrow.next {
    right: 20px;
}

.team-arrow.next:hover {
    --direction: 5px;
}

.team-arrow.prev:hover {
    --direction: -5px;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-auto-columns: calc((100% / 2.5) - 30px);
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-auto-columns: calc((100% / 2) - 30px);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-auto-columns: calc(100% - 40px);
    }
    
    .team-wrapper {
        padding: 0 40px;
    }
    
    .member-image {
        height: 350px;
    }
    
    .member-info {
        padding: 1.5rem;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
    
    .member-info .position {
        font-size: 1rem;
    }
    
    .member-info .bio {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .team-wrapper {
        padding: 0 30px;
    }
    
    .team-grid {
        grid-auto-columns: calc(100% - 20px);
    }
    
    .member-image {
        height: 300px;
    }
    
    .member-info {
        padding: 1.25rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* Join Us Section */
.join-us {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.join-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.join-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.join-text h2::after {
    left: 0;
    transform: none;
}

.join-text p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

.join-text p a {
    transition: var(--transition);
}

.join-text p a:hover {
    color: var(--tertiary-color);
}

.join-text ul {
    list-style: none;
    margin: 1.5rem 0;
}

.join-text ul li {
    margin-bottom: 0.5rem;
    color: var(--light-text);
    padding-left: 1.5rem;
    position: relative;
}

.join-text ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.join-text .cta-button {
    margin-top: 1.5rem;
}

.join-image {
    height: 100%;
    border-radius: 10px;
    box-shadow: var(--large-shadow);
}

.join-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .about-story .about-content,
    .join-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .subtitle {
        font-size: 1rem;
    }

    .value-card,
    .team-member {
        padding: 1.5rem;
    }
}

.list-section {
    padding: 1rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(media/lobby_002.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
}

.list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .list-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.list-card {
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;

}

.list-card ul {
    list-style: none;
    padding: 0;
}

.list-card ul li {
    list-style-type: none;
    margin-bottom: 0.5rem;
}

.list-card span {
    color: var(--primary-color);
}

/* FAQ Section Styles */
.faq-section {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.faq-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
    max-width: 800px;
    width: 100%;
}

.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--large-shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-color);
    font-size: 1.1rem;
}

.faq-question .arrow-icon {
    font-size: 1.5rem;
    margin-left: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

details[open] .arrow-icon {
    transform: rotate(-90deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }

    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .faq-question .arrow-icon {
        margin-left: 1.25rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
}

.gallery-video {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.video-gallery {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.video-gallery video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

