/* === CSS VARIABLES & DESIGN SYSTEM === */
:root {
    /* Colors */
    --clr-primary: #0f172a; /* Dark Blue */
    --clr-primary-light: #1e293b;
    --clr-accent: #d4af37; /* Gold / Elegance */
    --clr-accent-hover: #b5952f;
    --clr-text: #334155;
    --clr-text-light: #475569;
    --clr-white: #ffffff;
    --clr-bg: #f8fafc;
    --clr-bg-light: #f1f5f9;
    --clr-border: #e2e8f0;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --container-padding: 2rem;
    --section-padding: 5rem 0;
    --border-radius: 8px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* === RESET & FOUNDATION === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

/* === UTILITY CLASSES === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    position: relative;
    overflow: hidden;
}

.block-padding {
    padding: var(--section-padding);
}

.text-center { text-align: center; }
.text-white { color: var(--clr-white) !important; }
.text-dark { color: var(--clr-text); }
.bg-light { background-color: var(--clr-bg); }
.bg-dark { background-color: var(--clr-primary); }
.rounded { border-radius: var(--border-radius); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.break-all { word-break: break-all; }
.hidden { display: none !important; }

/* Grid Layouts */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

@media (min-width: 768px) {
    .grid-2-cols { grid-template-columns: repeat(2, 1fr); }
    .grid-3-cols { grid-template-columns: repeat(3, 1fr); }
}

/* Typography Utilities */
.section-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
}

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

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

.section-desc {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--clr-text-light);
    font-size: 1.1rem;
}

.text-white .section-desc {
    color: #cbd5e1;
}

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

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

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--clr-bg-light);
    color: var(--clr-primary);
}

.btn-outline {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.btn-outline:hover {
    background-color: var(--clr-accent);
    color: var(--clr-white) !important;
}

.btn-full {
    width: 100%;
}

/* === HEADER & NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.logo-accent {
    color: var(--clr-accent);
}

/* Hamburger Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--clr-primary);
    transition: var(--transition);
    border-radius: 3px;
}

/* Nav Menu */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--clr-text);
}

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

.nav-menu .btn-outline {
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
}

/* Responsive Menu */
@media (max-width: 991px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--clr-white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 5rem 2rem 2rem;
        transition: right 0.4s ease;
        overflow-y: auto;
    }

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

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-text-wrapper {
    max-width: 650px;
}

.hero .subtitle {
    font-family: var(--font-primary);
    color: var(--clr-accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero .title {
    color: var(--clr-white);
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero .description {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

/* === NOSOTROS SECTION === */
.nosotros-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60%;
    height: 60%;
    border-top: 4px solid var(--clr-accent);
    border-left: 4px solid var(--clr-accent);
    z-index: -1;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background-color: var(--clr-accent);
    color: var(--clr-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .num {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .nosotros-image { margin-bottom: 3rem; }
    .experience-badge { bottom: -10px; right: 10px; padding: 1rem; }
}

/* === SERVICIOS SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--clr-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.hover-up:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--clr-accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--clr-bg-light);
    color: var(--clr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--clr-accent);
    color: var(--clr-white);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

/* === EQUIPO SECTION === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    background: var(--clr-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.team-img-wrapper {
    height: 350px;
    overflow: hidden;
    position: relative;
}

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

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

.team-content {
    padding: 2rem;
    text-align: center;
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--clr-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.team-bio {
    font-size: 0.95rem;
    color: var(--clr-text-light);
}

/* === PROCESO SECTION === */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 25%;
        right: -20px;
        width: 40px;
        height: 2px;
        background-color: var(--clr-border);
    }
}

.step-num {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: var(--clr-bg-light);
    color: var(--clr-primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dotted var(--clr-accent);
}

.process-step:hover .step-num {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    border-style: solid;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* === CONTACTO SECTION === */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    color: var(--clr-accent);
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: var(--clr-white);
    margin-bottom: 0.25rem;
    font-family: var(--font-primary);
    font-size: 1.1rem;
}

.contact-item p {
    color: #cbd5e1;
    margin: 0;
}

.contacto-form-wrapper {
    padding: 3rem;
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--clr-primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--clr-white);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    display: inline-block;
}

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

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* === FOOTER === */
.footer {
    background-color: #020617;
    color: #cbd5e1;
    padding-top: 5rem;
}

.footer-logo {
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.footer-desc {
    margin-bottom: 1.5rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--clr-white);
    border-radius: 50%;
}

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

.footer-title {
    color: var(--clr-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #cbd5e1;
}

.footer-col a:hover {
    color: var(--clr-accent);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* Animations that trigger on scroll could be added here */
