/* === VARIABLES ================================= */
:root {
    --cream:       #FAF7F2;
    --nude:        #E8D5C4;
    --nude-dark:   #C9A98A;
    --blush:       #F2E4DA;
    --charcoal:    #1C1C1C;
    --warm-gray:   #6B6058;
    --white:       #FFFFFF;
    --border:      rgba(200, 170, 140, 0.3);
    --shadow:      rgba(28, 28, 28, 0.08);
}

/* === RESET & BASE ============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.7;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* === TIPOGRAFÍA ================================ */
.display-serif {
    font-family: 'Cormorant Garamond', serif;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.15;
    font-weight: 600;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #b8925c;
  margin-bottom: 1.5rem;
  font-family: 'DM Sans', sans-serif;
}

.section-tag::before {
  content: '◆';
  font-size: 1rem;
  color: #d4af7a;
}

.section-tag::after {
  content: '◆';
  font-size: 1rem;
  color: #d4af7a;
}

.btn-dark-solid {
    display: inline-block;
    background: var(--charcoal);
    color: var(--white) !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.95rem 2.4rem;
    border-radius: 50px;
    border: 2px solid var(--charcoal);
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}
.btn-dark-solid:hover {
    background: transparent;
    color: var(--charcoal) !important;
}

.btn-nude-outline {
    display: inline-block;
    background: transparent;
    color: var(--charcoal) !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.95rem 2.4rem;
    border-radius: 50px;
    border: 2px solid var(--nude-dark);
    transition: all 0.3s;
}
.btn-nude-outline:hover {
    background: var(--nude-dark);
    color: var(--white) !important;
}

/* === NAVBAR ==================================== */
.navbar-custom {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.navbar-custom.scrolled {
  padding: 5px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  z-index: 1040; /* extra */
}

.nav-blog-link {
    border: 1px solid rgba(201, 169, 138, 0.65);
    border-radius: 999px;
    padding: 0.35rem 0.8rem !important;
    color: #1c1c1c !important;
    font-weight: 500;
}

.nav-blog-link:hover {
    background: #1c1c1c;
    color: #ffffff !important;
    border-color: #1c1c1c;
}

/* Si encuentras que el contenido queda pegado al header, añade esto: */
.first-section {
  padding-top: 20px;
}
.logo-img {
  height: calc(68px - 1.8rem); /* 68px - (0.9rem * 2) = ~40px */
  width: auto;
}

@media (max-width: 991px) {
  .logo-img {
    height: 36px;
  }
}

/* Mobile nav */
@media (max-width: 991.98px) {
    .navbar > .container-fluid {
        position: relative;
        min-height: 68px;
        max-width: 100vw;
        overflow: hidden;
    }
    .navbar-brand {
        width: 110px !important;
        min-width: 110px !important;
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }
    .navbar-toggler {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        z-index: 20;
        padding: 0.25rem;
        border: 2px solid var(--charcoal) !important;
        border-radius: 4px;
        background: none;
    }
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2828,28,28,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    .navbar-collapse {
        position: fixed !important;
        right: 0 !important;
        left: auto !important;
        top: 68px;
        width: 80% !important;
        max-width: 300px !important;
        height: calc(100vh - 68px);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--white);
        z-index: 1001;
        box-shadow: -4px 0 20px var(--shadow);
    }
    .navbar-collapse.show { transform: translateX(0); }
    .navbar-nav {
        display: block !important;
        padding: 2rem 1.5rem;
        height: 100%;
    }
    .nav-item {
        margin: 0.6rem 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-link {
        padding: 0.75rem 0 !important;
        display: block;
    }
}

@media (min-width: 992px) {
    .navbar-mobile-container,
    .navbar-collapse.d-lg-none { display: none !important; }
    .d-none.d-lg-flex { display: flex !important; }
    .navbar > .container-fluid { flex-wrap: nowrap; padding: 0 2rem; }
    .navbar-brand {
        width: auto !important;
        min-width: unset !important;
        position: static !important;
        transform: none !important;
        margin-right: 3rem !important;
    }
    .navbar-collapse:not(.d-lg-none) {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
    }
    .navbar-nav {
        flex-direction: row !important;
        gap: 2rem;
        width: auto;
        padding: 0;
        margin: 0 0 0 auto !important;
    }
    .hire-now-btn { padding: 0.6rem 1.8rem !important; font-size: 0.82rem !important; margin-left: 1.5rem !important; }
}



 /* === FOOTER ==================================== */
.footer-custom {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    padding: 4rem 0 3rem;
}
.footer-custom h6 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.2rem;
}
.footer-custom a { color: rgba(255,255,255,0.6) !important; transition: color 0.2s; }
.footer-custom a:hover { color: var(--nude) !important; }
.footer-custom ul { padding-left: 0; list-style: none; }
.footer-custom ul li { margin-bottom: 0.6rem; }
.footer-custom ul li:hover { color: var(--nude); }

.contact-info { margin-top: 1rem; color: rgba(255,255,255,0.5); line-height: 1.9; }
.contact-info p { margin-bottom: 0.3rem; }

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: var(--white) !important;
    border-radius: 50%;
    font-size: 15px;
    transition: background 0.3s, transform 0.2s;
}
.social-icon:hover { background: var(--nude-dark); transform: scale(1.1); }

.btn-get-hired {
    display: inline-block;
    background: transparent;
    color: var(--white) !important;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    transition: all 0.3s;
    text-decoration: none;
    margin-top: 0.8rem;
}
.btn-get-hired:hover { background: var(--nude-dark); border-color: var(--nude-dark); }

@media (max-width: 768px) {
    .footer-custom .row > div { margin-bottom: 1.8rem; }
    .footer-custom .col-md-4, .footer-custom .col-sm-6 { text-align: center; }
    .btn-get-hired { width: 100%; text-align: center; }
}
@media (max-width: 576px) {
    .footer-custom .col-6 { margin-bottom: 1.5rem; }
    .footer-custom .row > div { flex: 0 0 50%; max-width: 50%; }
    .footer-custom .col-12 { flex: 0 0 100%; max-width: 100%; }
}

/* === WHATSAPP / CALL BUTTONS =================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background: var(--charcoal);
    color: var(--white);
    border-radius: 50px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp-btn:hover { transform: scale(1.1); background: #25D366; }

.call-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 99;
    background: var(--charcoal);
    color: var(--white);
    border-radius: 50px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.call-btn:hover { transform: scale(1.1); background: var(--nude-dark); }

/* === POPUP ===================================== */
.service-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(28,28,28,0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}
.popup-content {
    background: var(--white);
    border-radius: 12px;
    width: 90%; height: 85%;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease-in-out;
}
.close-btn {
    position: absolute;
    top: 1.2rem; right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--warm-gray);
    background: none;
    border: none;
    line-height: 1;
}
.popup-inner { margin-top: 2.5rem; }
.popup-inner h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; margin-bottom: 1rem; color: var(--charcoal); }
.popup-inner p { font-size: 1rem; line-height: 1.7; color: var(--warm-gray); }

@media (max-width: 768px) {
    .popup-content { width: 95%; height: 90%; padding: 1.2rem; }
    .popup-inner h2 { font-size: 1.5rem; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

#popup-img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 6px 20px var(--shadow);
    animation: zoomPulse 6s infinite;
}
@keyframes zoomPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}