:root {
    --primary: #d97736;
    --primary-light: #f29c61;
    --primary-dark: #b85c20;
    --secondary: #0c3b5e;
    --secondary-light: #165b8f;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-radius: 12px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

body {
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

.highlight {
    color: var(--primary);
}

/* Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.1rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 119, 54, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 54, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid white;
}

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

.w-100 {
    width: 100%;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

nav.scrolled .logo {
    color: var(--secondary);
}

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

.logo span {
    font-weight: 400;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

nav.scrolled .nav-links a:not(.btn-primary) {
    color: var(--text-main);
}

.nav-links a:hover:not(.btn-primary):not(.btn-login) {
    color: var(--primary);
}

/* Navigation buttons */
.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 1rem;
}

.btn-login {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.1rem;
    background: #AA151B; /* Spanish Red */
    color: white !important;
    box-shadow: 0 4px 15px rgba(170, 21, 27, 0.3);
    border: none;
}

.btn-login:hover {
    background: #8b1116;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(170, 21, 27, 0.4);
    color: white !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 59, 94, 0.85) 0%, rgba(12, 59, 94, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    color: white;
    max-width: 800px;
}

.hero-content h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Services */
.services {
    padding: 100px 0;
    background-color: var(--bg-white);
}

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

.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-icon {
    position: absolute;
    bottom: -30px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(217, 119, 54, 0.4);
    border: 4px solid white;
}

.service-content {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.service-content p {
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    margin-top: auto;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--secondary);
}

.service-features li i {
    color: var(--primary);
    margin-top: 4px;
}

/* Why Us */
.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.container-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.why-text {
    flex: 1;
}

.why-text h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.why-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-item h4 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-item span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.why-image {
    flex: 1;
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.glass-card p {
    color: white;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 24px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

/* Contact */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-info {
    flex: 1;
    background: var(--secondary);
    color: white;
    padding: 60px 40px;
}

.contact-info h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: white;
}

.contact-details i {
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-form {
    flex: 1.5;
    padding: 60px 40px;
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(217, 119, 54, 0.1);
}

/* Footer */
footer {
    background: #08263e;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--primary);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Pricing / Package Cards */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 20px;
}

.package-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.package-card.highlight {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.package-card.highlight:hover {
    transform: scale(1.05) translateY(-10px);
}

.package-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.package-name {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 16px;
    text-align: center;
}

.package-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.1;
}

.package-price.text-only {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.3rem; /* to align with the large numbers */
}

.package-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.package-desc {
    text-align: center;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.package-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--secondary);
}

.package-features li i {
    color: var(--primary);
}

.package-card .btn-primary {
    text-align: center;
    width: 100%;
}
.package-card:not(.highlight) .btn-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}
.package-card:not(.highlight) .btn-primary:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(217, 119, 54, 0.4);
}

/* Tabs */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn:hover {
    background: rgba(217, 119, 54, 0.1);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 119, 54, 0.3);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Responsive */
@media (max-width: 900px) {
    .container-flex, .contact-card {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.lang-switcher span.divider {
    color: rgba(255, 255, 255, 0.4);
}

nav.scrolled .lang-switcher span.divider {
    color: rgba(0, 0, 0, 0.2);
}

.lang-switcher a.active {
    color: var(--primary) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}
