
/* Reset & Base Styles */
:root {
    --primary-color: #0b1a2a; /* Azul muy oscuro */
    --secondary-color: #d1b87a; /* Dorado */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-gray: #f4f6f8; /* Gris muy elegante */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --transition-speed: 0.4s;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

.section-title.left {
    text-align: left;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title span.subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.separator {
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 0 auto 20px;
    transition: width 0.5s ease;
}

.section-title.left .separator {
    margin: 0 0 20px 0;
}

/* Animaciones de Scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Delay helpers para elementos en grilla */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Top Bar */
.top-bar {
    background-color: #060e17; /* Más oscuro que el primary */
    color: var(--text-light);
    padding: 10px 0;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar a {
    color: var(--secondary-color);
    font-weight: bold;
    transition: color var(--transition-speed);
}
.top-bar a:hover { color: var(--text-light); }

/* Header Animado */
header.main-header {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.4s ease, box-shadow 0.4s ease;
}

header.main-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.logo-container img {
    height: 70px;
    width: auto;
    transition: height 0.4s ease;
}

header.main-header.scrolled .logo-container img {
    height: 55px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

.main-nav a {
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}
.main-nav a:hover, .main-nav a.active { color: var(--text-light); }

/* Hero Section con Parallax suave */
.hero {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 150px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(209,184,122,0.05) 0%, rgba(11,26,42,1) 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 1.6rem;
    font-family: var(--font-body);
    font-weight: 300;
    margin-bottom: 35px;
    color: var(--text-light);
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background-color: var(--secondary-color);
    z-index: -1;
    transition: width 0.4s ease;
}

.btn:hover::before { width: 100%; }
.btn:hover { color: var(--primary-color); }

.btn-solid {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.btn-solid::before { background-color: #fff; }
.btn-solid:hover { color: var(--primary-color); }

/* Layout Base Sections */
section.padding-lg { padding: 120px 0; }
section.bg-gray { background-color: var(--bg-gray); }

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

/* Text & Info Blocks (Tarjetas Interactivas) */
.info-card {
    background: #fff;
    padding: 40px;
    border-radius: 2px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-top: 3px solid transparent;
    transition: all 0.4s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-top-color: var(--secondary-color);
}

.info-card h4 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Profile / Director */
.profile-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.profile-section p { font-size: 1.1rem; color: #555; }

/* Servicios Estilo Lista Elegante */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    background: #fff;
    border-left: 2px solid #eee;
    transition: all 0.4s ease;
}

.service-item:hover {
    border-left-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateX(10px);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--secondary-color);
    margin-right: 30px;
    line-height: 0.8;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}
.service-item:hover .service-number { opacity: 1; }

.service-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* Image Showcase Interactivo */
.image-showcase {
    width: 100%;
    position: relative;
}

.showcase-img-container {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.showcase-img-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary-color);
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

.showcase-img-container:hover::after { opacity: 0; }

.showcase-img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.showcase-img-container:hover img { transform: scale(1.05); }

/* Decorative frame behind image */
.image-showcase::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    z-index: -1;
    transition: transform 0.5s ease;
}
.image-showcase:hover::before {
    transform: translate(10px, 10px);
}


/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.footer-col p { opacity: 0.8; margin-bottom: 12px; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3.2rem; }
    .image-showcase::before { display: none; }
}

@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero { padding: 100px 20px; }
    .hero h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2.2rem; }
    .service-item { flex-direction: column; }
    .service-number { margin-bottom: 15px; }
}
