/* ─────────────────────────────────────────────────────────
   SHARED HERO STYLES — extracted from home-page.php and page-proyecto.php
   ───────────────────────────────────────────────────────── */
.tn-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.tn-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.tn-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: var(--tn-container-padding);
}

.tn-hero-text h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--tn-color-primary-contrast);
}

.tn-hero-text p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 30px;
    opacity: 0.95;
    color: var(--tn-color-primary-contrast);
}

.tn-hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.tn-hero-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    animation: fadeInHero 1.2s ease-in-out;
}

@keyframes fadeInHero {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.tn-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--tn-transition-base) ease;
    display: inline-block;
}

.tn-btn-primary {
    background-color: var(--tn-color-auxiliar);
    color: var(--tn-color-text);
    border: none;
}
.tn-btn-primary:hover {
    background-color: var(--tn-color-auxiliar-dark);
    transform: translateY(-2px);
}

.tn-btn-ghost {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid #fff;
    backdrop-filter: blur(5px);
}
.tn-btn-ghost:hover {
    background-color: #fff;
    color: #333;
}

.tn-section--alt {
    background-color: #f4f7f9;
    border-top: 1px solid #e1e8ed;
    border-bottom: 1px solid #e1e8ed;
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE — shared breakpoints
   ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .tn-hero { height: 70vh; min-height: 450px; }
    .tn-hero-content { max-width: 700px; padding: 0 30px; }
    .tn-hero-text h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 18px; }
    .tn-hero-text p  { font-size: clamp(1rem, 1.8vw, 1.3rem); margin-bottom: 25px; }
    .tn-btn          { padding: 12px 24px; font-size: 0.95rem; }
}

@media (max-width: 768px) {
    .tn-hero { height: 60vh; min-height: 400px; }
    .tn-hero-content { max-width: 600px; padding: 0 25px; }
    .tn-hero-text h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: 15px; }
    .tn-hero-text p  { font-size: clamp(0.95rem, 1.6vw, 1.2rem); margin-bottom: 20px; }
    .tn-hero-actions { gap: 12px; }
    .tn-btn          { padding: 11px 22px; font-size: 0.9rem; }
}

@media (max-width: 600px) {
    .tn-hero { height: 55vh; min-height: 350px; }
    .tn-hero-content { padding: 0 20px; }
    .tn-hero-text h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 12px; }
    .tn-hero-text p  { font-size: clamp(0.9rem, 1.5vw, 1.1rem); margin-bottom: 18px; }
    .tn-hero-actions { gap: 10px; flex-direction: column; align-items: center; }
    .tn-btn { padding: 10px 20px; font-size: 0.85rem; width: 100%; max-width: 250px; text-align: center; }
}

@media (max-width: 480px) {
    .tn-hero { height: 50vh; min-height: 300px; }
    .tn-hero-content { padding: 0 15px; }
    .tn-hero-text h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 10px; line-height: 1.2; }
    .tn-hero-text p  { font-size: clamp(0.85rem, 1.4vw, 1rem); margin-bottom: 15px; line-height: 1.5; }
    .tn-hero-overlay { background: rgba(0, 0, 0, 0.5); }
    .tn-btn          { padding: 9px 18px; font-size: 0.8rem; }
}

@media (max-width: 360px) {
    .tn-hero { min-height: 280px; }
    .tn-hero-content { padding: 0 12px; }
    .tn-hero-text h1 { font-size: 1.3rem; }
    .tn-hero-text p  { font-size: 0.8rem; }
    .tn-btn          { padding: 8px 16px; font-size: 0.75rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .tn-hero { min-height: 100vh; }
    .tn-hero-text h1 { font-size: 2rem; margin-bottom: 10px; }
    .tn-hero-text p  { font-size: 1rem; margin-bottom: 15px; }
    .tn-btn          { padding: 8px 16px; }
}