/* ==================== VARIABLES ==================== */
:root {
    --primary-color: #02142A;
    --secondary-color: #415872;
    --accent-color: #415872;
    --gold-color: #C9A24D;
    --gold-dark: #B8935F;
    --navy-dark: #02142A;
    --dark-color: #02142A;
    --text-color: #334155;
    --light-text: #64748b;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #C9A24D;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --header-height: 4.5rem;
    --border-radius: 0.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

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

.section {
    padding: 5rem 0;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--light-text);
    font-weight: var(--font-weight-regular);
}

.mt-4 {
    margin-top: 2rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.btn-light:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

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

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
}

.dropdown__link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Mobile Menu */
.nav__toggle,
.nav__close {
    display: none;
}

/* ==================== HERO SECTION ==================== */
.hero {
    margin-top: var(--header-height);
    color: var(--white);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero.parallax-hero::before {
    background: rgba(2, 20, 42, 0.8);
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 700px;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.1;
}

.hero__description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

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

/* ==================== NOSOTROS SECTION ==================== */
.nosotros {
    background-color: var(--white);
}

.nosotros__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.nosotros__text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.nosotros__text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.valores__list {
    list-style: none;
    padding: 0;
}

.valores__list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
}

.valores__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
}

.nosotros__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat__card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stat__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat__number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ==================== SERVICIOS SECTION ==================== */
.servicios {
    background-color: var(--light-bg);
}

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

.servicio__card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

.servicio__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--primary-color);
}

.servicio__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.servicio__icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.servicio__icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.servicio__title {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: var(--dark-color);
    line-height: 1.3;
}

.servicio__description {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.servicio__link {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.servicio__link:hover {
    gap: 0.75rem;
}

/* ==================== CTA SECTION ==================== */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta__description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header__title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-header__breadcrumb {
    font-size: 1rem;
    opacity: 0.9;
}

.page-header__breadcrumb a {
    color: var(--white);
}

.page-header__breadcrumb a:hover {
    text-decoration: underline;
}

/* ==================== CONTACTO PAGE ==================== */
.contacto__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contacto__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contacto__text {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contacto__details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail__item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.detail__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail__icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.detail__content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.detail__content p {
    color: var(--light-text);
    line-height: 1.6;
}

.contacto__emergency {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.contacto__emergency h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.contacto__emergency p {
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.emergency__number {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

/* ==================== FORM STYLES ==================== */
.contacto__form-wrapper {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.form__title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form__input.error,
.form__select.error,
.form__textarea.error {
    border-color: var(--error-color);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__error {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form__checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.form__checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form__message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: none;
    text-align: center;
    font-weight: var(--font-weight-medium);
}

.form__message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form__message.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ==================== MAPA SECTION ==================== */
.mapa {
    background-color: var(--white);
}

.mapa__wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mapa__placeholder {
    background-color: var(--light-bg);
    padding: 4rem 2rem;
    text-align: center;
}

.mapa__placeholder svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.mapa__placeholder p {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 2rem 0 1rem;
}

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

.footer__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.footer__subtitle {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.footer__text {
    color: var(--gray-300);
    line-height: 1.8;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    color: var(--gray-300);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer__info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--gray-300);
}

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

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

.social__link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social__link svg {
    width: 20px;
    height: 20px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__bottom p {
    color: var(--gray-300);
}

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

.footer__legal a {
    color: var(--gray-300);
}

.footer__legal a:hover {
    color: var(--white);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets */
@media screen and (max-width: 968px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section {
        padding: 4rem 0;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .nosotros__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .nosotros__stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contacto__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .page-header__title {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 3.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    /* Mobile Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        transition: var(--transition);
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        color: var(--dark-color);
        cursor: pointer;
    }
    
    .nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        cursor: pointer;
    }
    
    .nav__toggle-icon {
        width: 25px;
        height: 3px;
        background-color: var(--dark-color);
        transition: var(--transition);
    }
    
    .dropdown__menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }
    
    /* Hero */
    .hero {
        padding: 4rem 0;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__description {
        font-size: 1rem;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .hero__buttons .btn {
        width: 100%;
    }
    
    /* Stats */
    .nosotros__stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat__number {
        font-size: 2rem;
    }
    
    /* Services */
    .servicios__grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta__title {
        font-size: 1.75rem;
    }
    
    .cta__description {
        font-size: 1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .page-header__title {
        font-size: 2rem;
    }
    
    /* Contact Form */
    .contacto__form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .form__title {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .hero__title {
        font-size: 1.75rem;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    .nosotros__stats {
        grid-template-columns: 1fr;
    }
    
    .stat__card {
        padding: 1.5rem;
    }
    
    .contacto__form-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .detail__item {
        flex-direction: column;
        text-align: center;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ==================== LEGAL PAGES ==================== */
.legal-content {
    background-color: var(--white);
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.legal-date {
    font-size: 0.875rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.legal-document h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-document h3 {
    color: var(--dark-color);
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-document p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.legal-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    line-height: 1.7;
}

.legal-list li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
}

.legal-document a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-document a:hover {
    color: var(--secondary-color);
}

.legal-footer {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    text-align: center;
}

.legal-footer p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .legal-document {
        padding: 2rem 1.5rem;
    }
    
    .legal-document h2 {
        font-size: 1.5rem;
    }
    
    .legal-document h3 {
        font-size: 1.125rem;
    }
}

/* ==================== SERVICIO DETALLE PAGE ==================== */
.servicio-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.servicio-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--light-text);
}

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

.servicio-main h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.servicio-areas {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.area-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.area-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.area-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.area-item p {
    color: var(--light-text);
    line-height: 1.7;
}

.servicio-proceso {
    background-color: var(--light-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
}

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

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin: 0 auto 1rem;
}

.step h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.step p {
    font-size: 0.875rem;
    color: var(--light-text);
    line-height: 1.6;
}

.servicio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.sidebar-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.sidebar-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-links a {
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 0.25rem;
    transition: var(--transition);
    display: block;
}

.sidebar-links a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 1.25rem;
}

.sidebar-info p {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.sidebar-info hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.5rem 0;
}

/* Responsive Servicio Detalle */
@media screen and (max-width: 968px) {
    .servicio-content {
        grid-template-columns: 1fr;
    }
    
    .servicio-intro h2 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    .proceso-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .servicio-intro h2 {
        font-size: 1.75rem;
    }
    
    .servicio-main h3 {
        font-size: 1.5rem;
    }
    
    .proceso-steps {
        grid-template-columns: 1fr;
    }
    
    .servicio-proceso {
        padding: 2rem 1.5rem;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .header,
    .nav,
    .hero,
    .cta,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
}

/* ==================== PARALLAX EFFECTS ==================== */
.parallax {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background: rgba(2, 20, 42, 0.7);
    z-index: 1;
    will-change: transform;
}

.parallax__content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    width: 100%;
}

.parallax-hero {
    background-image: url('../img/BG_Rex_Legum.jpg');
    min-height: 100vh;
}

.parallax-about {
    background-image: url('../img/despacho.jpg');
    min-height: 70vh;
}

.parallax-services {
    background-image: url('../img/mesa_juntas.jpg');
    min-height: 60vh;
}

.parallax-contact {
    background-image: url('../img/BG_RL.jpg');
    min-height: 50vh;
}

/* Parallax on mobile (fallback) */
@media (max-width: 768px) {
    .parallax {
        min-height: 50vh;
    }
    
    .parallax-hero {
        min-height: 70vh;
    }
    
    .parallax::before {
        width: 100%;
        height: 100%;
        transform: none !important;
    }
}

/* ==================== PARALLAX DIVIDER SECTIONS ==================== */
.parallax-divider {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background: rgba(2, 20, 42, 0.75);
    z-index: 1;
    will-change: transform;
}

.parallax-divider__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 0 2rem;
}

.parallax-divider__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
    font-weight: var(--font-weight-bold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.parallax-divider__text {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.parallax-about-bg {
    background-image: url('../img/despacho.jpg');
}

.parallax-services-bg {
    background-image: url('../img/mesa_juntas.jpg');
}

.parallax-contact-bg {
    background-image: url('../img/BG_RL.jpg');
}

/* Mobile parallax adjustments */
@media (max-width: 768px) {
    .parallax-divider {
        height: 30vh;
        min-height: 250px;
    }
    
    .parallax-divider::before {
        width: 100%;
        height: 100%;
        transform: none !important;
    }
    
    .parallax-divider__title {
        font-size: 2rem;
    }
    
    .parallax-divider__text {
        font-size: 1rem;
    }
}

/* ==================== EQUIPO CON CARD FLIP ==================== */
.equipo {
    background-color: var(--light-bg);
}

.equipo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 1rem;
}

/* Flip Card Container */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 500px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Frente de la tarjeta */
.flip-card-front {
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.card-front-info {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-front-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-front-info .cargo {
    font-size: 1rem;
    color: var(--gold-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
}

.card-front-info .especialidad {
    font-size: 0.9rem;
    color: var(--text-color);
    font-style: italic;
}

/* Dorso de la tarjeta */
.flip-card-back {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: rotateY(180deg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card-back h3 {
    color: var(--gold-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.card-back-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-back-content .bio {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.contacto-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: left;
}

.contacto-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contacto-info p:last-child {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold-color);
    transform: scale(1.1);
}

.social-links img {
    width: 28px;
    height: 28px;
    display: block;
}

/* ==================== RESPONSIVE EQUIPO ==================== */
@media (max-width: 768px) {
    .equipo__grid {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
    
    .flip-card {
        height: 450px;
    }
    
    .card-img-wrapper {
        height: 220px;
    }
    
    .card-front-info,
    .flip-card-back {
        padding: 1.5rem 1rem;
    }
    
    .card-front-info h3,
    .flip-card-back h3 {
        font-size: 1.1rem;
    }
}