/* =====================================================
   DUVAN SIERRA GROUP — Hoja de estilos principal
   Colores: Negro #0a0a0a  |  Dorado #c9a84c
===================================================== */

/* --- VARIABLES --- */
:root {
    --black:        #0a0a0a;
    --dark:         #111111;
    --dark-card:    #1a1a1a;
    --dark-border:  #252525;
    --gold:         #c9a84c;
    --gold-light:   #e2c26a;
    --gold-dark:    #8a6914;
    --gold-rgb:     201, 168, 76;
    --white:        #f5f5f5;
    --gray:         #8a8a8a;
    --gray-light:   #bbbbbb;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Montserrat', Arial, sans-serif;
    --transition:   all 0.35s ease;
    --shadow-gold:  0 6px 30px rgba(201, 168, 76, 0.15);
    --radius:       4px;
}

/* --- RESET --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILIDADES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 100px 0; }

.gold-text {
    color: var(--gold);
    font-weight: 600;
}

/* --- BOTÓN DORADO --- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
    background-size: 200% 200%;
    background-position: left center;
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 18px rgba(201, 168, 76, 0.3);
}

.btn-gold:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.5);
    color: var(--black);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- SECTION HEADER --- */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--white);
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
}

.gold-line {
    flex: 1;
    max-width: 110px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.gold-line:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-sub {
    text-align: center;
    color: var(--gray);
    font-size: 0.95rem;
    max-width: 580px;
    margin: 0 auto 4rem;
    line-height: 1.9;
}

/* --- SEPARADOR DE SECCIÓN --- */
.section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
    margin-bottom: 0;
}

.hero::before { display: none; }

/* --- REVEAL SCROLL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   NAVBAR
===================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.97);
    padding: 0.7rem 0;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.6),
                inset 0 -1px 0 rgba(201, 168, 76, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 50px;
    transition: height 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.25));
}

#navbar.scrolled .nav-logo img { height: 40px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gray);
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--gold); }

.nav-link:hover::after,
.nav-link.active::after { width: 55%; }

.btn-nav-contact {
    border: 1px solid rgba(201, 168, 76, 0.5);
    border-radius: var(--radius);
    color: var(--gold) !important;
    padding: 0.45rem 1.3rem !important;
}

.btn-nav-contact:hover {
    background: var(--gold);
    color: var(--black) !important;
    border-color: var(--gold);
}

.btn-nav-contact::after { display: none; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =====================================================
   HERO
===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 55%, rgba(201, 168, 76, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 45%, rgba(201, 168, 76, 0.05) 0%, transparent 55%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: url('../img/logo_portada.png');
    background-size: cover;
    background-position: center;
    opacity: 0.035;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 820px;
}

.hero-logo {
    width: min(180px, 38vw);
    margin: 0 auto 2.5rem;
    filter: drop-shadow(0 0 35px rgba(201, 168, 76, 0.45));
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.4rem;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-light);
    margin-bottom: 2.2rem;
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: 0.3px;
}

.hero-divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 1.8rem;
}

.hero-slogan {
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Animaciones entrada Hero */
.animate-up {
    opacity: 0;
    transform: translateY(22px);
    animation: fadeUp 0.9s forwards;
}

.delay-1 { animation-delay: 0.35s; }
.delay-2 { animation-delay: 0.65s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.15s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-hint span {
    display: block;
    width: 22px;
    height: 38px;
    border: 1.5px solid rgba(201, 168, 76, 0.4);
    border-radius: 11px;
    position: relative;
}

.scroll-hint span::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollBob 2.2s infinite;
}

@keyframes scrollBob {
    0%   { opacity: 1; top: 5px; }
    100% { opacity: 0; top: 22px; }
}

/* =====================================================
   QUIÉNES SOMOS
===================================================== */
.nosotros {
    background: var(--dark);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-top: 3.5rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.nosotros-img-wrap {
    position: relative;
    padding: 1.5rem;
    text-align: center;
}

.nosotros-img-wrap img {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    filter: drop-shadow(0 12px 45px rgba(201, 168, 76, 0.2));
}

.img-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 1.5rem;
    bottom: 1.5rem;
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: var(--radius);
    pointer-events: none;
}

.nosotros-text h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    color: var(--white);
    margin-bottom: 1.8rem;
    line-height: 1.3;
}

.nosotros-text p {
    color: var(--gray-light);
    font-size: 0.94rem;
    margin-bottom: 1.1rem;
    line-height: 1.95;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
    margin-top: 2.8rem;
}

.valor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 1.3rem 0.5rem;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-bottom: 2px solid var(--gold);
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.valor i {
    font-size: 1.4rem;
    color: var(--gold);
}

.valor span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    font-weight: 500;
}

/* =====================================================
   SERVICIOS
===================================================== */
.servicios {
    background: var(--black);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    margin-bottom: 4rem;
}

.servicio-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-top: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 2.8rem 2rem;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}

.servicio-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.1);
}

.card-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.07);
    border: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.6rem;
    transition: background 0.3s ease;
}

.servicio-card:hover .card-icon {
    background: rgba(201, 168, 76, 0.15);
}

.card-icon i {
    font-size: 1.7rem;
    color: var(--gold);
}

.servicio-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.servicio-card p {
    color: var(--gray);
    font-size: 0.87rem;
    line-height: 1.75;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--dark-card) 0%, rgba(201, 168, 76, 0.04) 100%);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: var(--radius);
    padding: 4.5rem 3rem;
    text-align: center;
}

.cta-inner h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-inner p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   UBICACIÓN
===================================================== */
.ubicacion {
    background: var(--dark);
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3.5rem;
}

.ubicacion-info {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.info-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.info-item > i {
    font-size: 1.3rem;
    color: var(--gold);
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.info-item h4 {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.info-item p {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.ubicacion-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--dark-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.ubicacion-map iframe {
    display: block;
    filter: grayscale(50%) invert(90%) hue-rotate(175deg);
}

/* =====================================================
   CONTACTO
===================================================== */
.contacto {
    background: var(--black);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3.5rem;
}

.contacto-info h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.contacto-info > p {
    color: var(--gray-light);
    font-size: 0.93rem;
    margin-bottom: 2.2rem;
    line-height: 1.9;
}

.social-links {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
}

.social-link {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.contacto-detalle {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detalle-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--gray-light);
    font-size: 0.9rem;
}

.detalle-item i { color: var(--gold); font-size: 1.1rem; }

/* Formulario */
.contacto-form {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2.8rem;
}

.form-group { margin-bottom: 1.6rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.55rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--dark);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #444; }

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(201, 168, 76, 0.55);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.07);
}

.form-feedback {
    margin-top: 1rem;
    font-size: 0.87rem;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius);
    display: none;
}

.form-feedback.success {
    display: block;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.07);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.form-feedback.error {
    display: block;
    color: #f87171;
    background: rgba(248, 113, 113, 0.07);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: #060606;
    border-top: 1px solid rgba(201, 168, 76, 0.12);
    padding: 65px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.6fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--dark-border);
}

.footer-brand img {
    height: 62px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.2));
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.footer-nav h5,
.footer-contact-info h5 {
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.3rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-nav ul li { margin-bottom: 0.75rem; }

.footer-nav ul li a {
    color: var(--gray);
    font-size: 0.87rem;
}

.footer-nav ul li a:hover { color: var(--gold); }

.footer-contact-info p {
    color: var(--gray);
    font-size: 0.87rem;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-contact-info p i { color: var(--gold); }

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.3rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.82rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: #3a3a3a;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

/* =====================================================
   BACK TO TOP
===================================================== */
.back-to-top {
    position: fixed;
    bottom: 2.2rem;
    right: 2.2rem;
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.3s ease;
    box-shadow: 0 4px 18px rgba(201, 168, 76, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
    color: var(--black);
}

/* =====================================================
   RESPONSIVE — TABLET (≤ 1024px)
===================================================== */
@media (max-width: 1024px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nosotros-img-wrap {
        max-width: 280px;
        margin: 0 auto;
    }

    .servicios-grid { grid-template-columns: repeat(2, 1fr); }

    .ubicacion-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* =====================================================
   RESPONSIVE — MÓVIL (≤ 768px)
===================================================== */
@media (max-width: 768px) {
    .section { padding: 70px 0; }

    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        gap: 0.7rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(201, 168, 76, 0.12);
    }

    .nav-links.open { right: 0; }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }

    .servicios-grid { grid-template-columns: 1fr; }

    .valores-grid { grid-template-columns: repeat(2, 1fr); }

    .form-row { grid-template-columns: 1fr; }

    .cta-banner { padding: 3rem 1.5rem; }

    .footer-content { grid-template-columns: 1fr; }

    .contacto-form { padding: 1.8rem 1.4rem; }
}

/* =====================================================
   RESPONSIVE — PEQUEÑO (≤ 480px)
===================================================== */
@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }

    .section-header { gap: 0.8rem; }

    .gold-line { max-width: 50px; }

    .section-header h2 { white-space: normal; text-align: center; }

    .hero-content h1 { letter-spacing: -0.5px; }

    .valores-grid { gap: 0.6rem; }
}
