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

:root {
    --primary-gold: #C8A882;
    --secondary-gold: #B8956F;
    --dark-gold: #A67C52;
    --light-gold: #E6D4B7;
    --black: #1a1a1a;
    --dark-gray: #2d2d2d;
    --light-gray: #f8f8f8;
    --white: #ffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --gradient-gold: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    --gradient-dark: linear-gradient(135deg, var(--black), var(--dark-gray));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--black);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(200, 168, 130, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 168, 130, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Logo Styles */
.logo-image {
    height: 60px; /* Reducido de 140px a 80px para hacer el menú más delgado */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.hero-logo-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
}

.footer-logo-image {
    height: 80px; /* Ajustado para mantener la proporción */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(200, 168, 130, 0.1);
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem; /* Reducido de 1rem a 0.5rem para hacer el menú más delgado */
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--black);
    text-decoration: none;
}

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

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

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

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

.nav-cta {
    background: var(--gradient-gold);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 168, 130, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23C8A882" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-subtitle {
    font-size: 1.5rem;
    color: var(--dark-gray);
    font-weight: 400;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-logo {
    animation: float 6s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-gold);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
    transform: rotate(45deg);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--white);
}

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

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.about-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(200, 168, 130, 0.1);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.card-icon {
    margin-bottom: 1rem;
}

.about-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.about-card p {
    color: var(--dark-gray);
    margin: 0;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--light-gray);
}

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.service-icon {
    margin-bottom: 1.5rem;
}

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

.service-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-gold);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 168, 130, 0.3);
}

/* Commitments Section */
.commitments {
    padding: 6rem 0;
    background: var(--white);
}

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

.commitment-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light-gray);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(200, 168, 130, 0.1);
}

.commitment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.commitment-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.commitment-icon {
    margin: 2rem 0 1.5rem;
}

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

.commitment-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.commitment-cta {
    text-align: center;
    padding: 3rem;
    background: var(--gradient-gold);
    border-radius: 20px;
    color: var(--white);
}

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

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

.commitment-cta .btn-primary {
    background: var(--white);
    color: var(--primary-gold);
}

.commitment-cta .btn-primary:hover {
    background: var(--light-gray);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--light-gray);
}

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

.contact-info {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(200, 168, 130, 0.1);
}

.contact-item:last-of-type {
    border-bottom: none;
    margin-bottom: 3rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.contact-details a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--dark-gold);
}

.contact-details p {
    color: var(--dark-gray);
    margin: 0;
}

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

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

#map iframe {
    border-radius: 20px;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

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

.footer-column li {
    margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
    }
    40% {
    transform: translateY(-10px) translateX(-50%);
    }
    60% {
    transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    }

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

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

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

    .stats {
    justify-content: center;
    }

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

@media (max-width: 768px) {
    .nav-container {
    padding: 0.5rem 15px;
    }

    .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Cambiado de left a right para que aparezca desde la derecha */
    width: 80%; /* Reducido para que no ocupe toda la pantalla */
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
    transform: translateX(0); /* Eliminado para usar right en su lugar */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    }

    .nav-menu.active {
    right: 0; /* Cambiado para deslizar desde la derecha */
    opacity: 1;
    visibility: visible;
    }

    .nav-menu .nav-link {
    font-size: 1.5rem;
    margin: 1rem 0;
    text-align: center;
    }

    .nav-menu .nav-cta {
    margin-top: 2rem;
    font-size: 1.2rem;
    padding: 15px 30px;
    }

    .hamburger {
    display: flex;
    position: absolute;
    right: 15px; /* Posicionado a la derecha */
    top: 50%; /* Centrado verticalmente */
    transform: translateY(-50%);
    }

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

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

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

    .hero {
    padding-top: 100px;
    min-height: calc(100vh - 80px);
    }

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

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

    .hero-buttons {
    justify-content: center;
    }

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

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

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

    .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    }

    .stats {
    flex-direction: column;
    gap: 1rem;
    }

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

    .logo-image {
    height: 70px; /* Aumentado para dispositivos móviles */
    }

    .hero-logo-image {
    max-width: 250px;
    }

    .container {
    padding: 0 15px;
    }

    .about, .services, .commitments, .contact {
    padding: 4rem 0;
    }

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

    .section-subtitle {
    margin-bottom: 2rem;
    }

    .footer-logo-image {
    height: 70px; /* Aumentado para dispositivos móviles */
    }
}

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

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

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

    .service-card,
    .about-card,
    .commitment-card {
    padding: 1.5rem;
    }

    .contact-info {
    padding: 2rem;
    }

    .hero-buttons {
    flex-direction: column;
    align-items: center;
    }

    .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
    }

    .logo-image {
    height: 65px; /* Aumentado para dispositivos móviles pequeños */
    }

    .hero-logo-image {
    max-width: 200px;
    }

    .footer-logo-image {
    height: 65px; /* Aumentado para dispositivos móviles pequeños */
    }

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

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

    .commitment-cta {
    padding: 2rem;
    }

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

    .about, .services, .commitments, .contact {
    padding: 3rem 0;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Hover effects for interactive elements */
.service-card:hover .service-icon svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.about-card:hover .card-icon svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.commitment-card:hover .commitment-icon svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gold);
}

/* Mobile menu overlay */
.nav-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Ensure footer is always visible */
.footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

/* Fix for mobile viewport */
@media (max-width: 768px) {
    .hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    }
}

/* Improved mobile touch targets */
@media (max-width: 768px) {
    .btn {
    min-height: 44px;
    padding: 12px 24px;
    }

    .nav-link {
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    .hamburger {
    padding: 10px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
    }
}
