/* ===== Base & Utilities ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2D5A3D;
    transition: width 0.3s ease;
}

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

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #1C3A26;
}

#navbar.scrolled .nav-link {
    color: #2D5A3D;
}

#navbar.scrolled .nav-link:hover {
    color: #2D5A3D;
}

/* ===== Buttons ===== */
.btn-reservar {
    background: #2D5A3D;
    transition: all 0.3s ease;
}

.btn-reservar:hover {
    background: #244A31;
    transform: translateY(-1px);
}

.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-submit {
    background: #2D5A3D;
    color: #FDFCFA;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-submit:hover {
    background: #244A31;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 90, 61, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ===== Input Fields ===== */
.input-field {
    border: 1.5px solid #E4D9C3;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1a1a1a;
    background: #FDFCFA;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #a0a0a0;
}

.input-field:focus {
    border-color: #2D5A3D;
    box-shadow: 0 0 0 4px rgba(45, 90, 61, 0.1);
    background: #fff;
}

.input-field:hover:not(:focus) {
    border-color: #A3C4AB;
}

/* ===== Floating Cards ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

.card-4 {
    animation-delay: -1s;
}

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

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
}

/* ===== Image hover effects ===== */
.rounded-2xl.overflow-hidden {
    position: relative;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .floating-card {
        display: none;
    }

    #inicio {
        min-height: 100vh;
    }
}

/* ===== Selection ===== */
::selection {
    background: #A3C4AB;
    color: #1C3A26;
}

/* ===== Focus visible ===== */
:focus-visible {
    outline: 2px solid #2D5A3D;
    outline-offset: 2px;
}

/* ===== Loading state for form ===== */
.btn-submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(253, 252, 250, 0.3);
    border-top-color: #FDFCFA;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
