/*
 * tata-landing.css – TAT@ Informática (versión mejorada)
 * Cargado después de: bootstrap · estilos.css · style.red.css
 * Variables disponibles: --bs-tatacolor, --bs-warning
 * Fuentes: Oswald (cabezal), Font Awesome (kit)
 * ================================================================ */


/* ================================================================
   1. HERO – ESTRUCTURA GENERAL
   ================================================================ */
.tata-hero {
    background: #fff;
    overflow: hidden;
}

/* ── Escritorio: flex row ── */
.tata-hero__desktop {
    display: flex;
    align-items: stretch;
    min-height: 520px;
}

/* Columna texto: 55% */
.tata-hero__content {
    flex: 0 0 55%;
    max-width: 55%;
    padding: 44px 40px 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    background: #fff;
}

/* Columna foto: 45% */
.tata-hero__imgcol {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
    overflow: hidden;
    background: #111;
}
.tata-hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

/* Franja roja inferior sobre la foto */
.tata-hero__img-cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bs-tatacolor, #cc0000);
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: .88rem;
    font-weight: 600;
    padding: 10px 18px;
    text-align: center;
    letter-spacing: .3px;
}


/* ================================================================
   2. HERO – ELEMENTOS DE CONTENIDO
   ================================================================ */

/* Badge "experiencia" */
.tata-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(204, 0, 0, .08);
    color: var(--bs-tatacolor, #cc0000);
    border: 1px solid rgba(204, 0, 0, .2);
    border-radius: 30px;
    padding: 5px 14px;
    font-family: Oswald, sans-serif;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    width: fit-content;
}

/* Título principal escritorio */
.tata-hero__title {
    font-family: Oswald, 'Arial Narrow', Arial, sans-serif;
    font-size: 2.9rem;
    font-weight: 900;
    line-height: 1.06;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0;
}
.tata-hero__em {
    color: var(--bs-tatacolor, #cc0000);
    font-style: italic;
}

/* Descripción */
.tata-hero__desc {
    font-size: .98rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* Lista 2 columnas escritorio */
.tata-hero__list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.tata-hero__list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.tata-hero__list li {
    font-size: .93rem;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tata-hero__list li .fas {
    color: var(--bs-tatacolor, #cc0000);
    font-size: .9rem;
    flex-shrink: 0;
}

/* ── Mini-stats ── */
.tata-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 14px 20px;
    border: 1px solid #ebebeb;
}
.tata-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}
.tata-stat__num {
    font-family: Oswald, sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--bs-tatacolor, #cc0000);
    line-height: 1;
}
.tata-stat__lbl {
    font-size: .72rem;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-top: 3px;
}
.tata-stat__sep {
    width: 1px;
    height: 36px;
    background: #ddd;
    flex-shrink: 0;
    margin: 0 4px;
}
.tata-star-sm {
    font-size: .9rem;
    color: var(--bs-warning, #ffc107);
    margin-left: 2px;
    vertical-align: middle;
}

/* Ubicación */
.tata-ubicacion {
    font-size: .82rem;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tata-ubicacion .fas {
    color: var(--bs-tatacolor, #cc0000);
}

/* CTAs escritorio */
.tata-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* ================================================================
   3. HERO – MÓVIL
   ================================================================ */

/* Foto a ancho completo */
.tata-hero__mobile-foto {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #111;
}
.tata-hero__mobile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/* Degradado sobre la foto */
.tata-hero__mobile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.05)  20%,
        rgba(0,0,0,.78)  100%
    );
}

/* Título flotante sobre la foto */
.tata-hero__mobile-titular {
    position: absolute;
    bottom: 16px;
    left: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tata-badge--mobile {
    background: rgba(204,0,0,.85);
    border-color: transparent;
    color: #fff;
    font-size: .75rem;
}
.tata-hero__title--mobile {
    font-family: Oswald, 'Arial Narrow', Arial, sans-serif;
    font-size: 1.95rem;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.6);
    margin: 0;
}

/* Contenido bajo foto en móvil */
.tata-hero__mobile-content {
    padding: 22px 18px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
}

/* Stats en móvil */
.tata-stats--mobile {
    padding: 12px 14px;
}
.tata-stats--mobile .tata-stat__num { font-size: 1.35rem; }
.tata-stats--mobile .tata-stat__lbl { font-size: .68rem; }

/* CTAs apilados en móvil */
.tata-hero__ctas--mobile {
    flex-direction: column;
    gap: 10px;
}
.tata-hero__ctas--mobile .tata-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
}


/* ================================================================
   4. BOTONES
   ================================================================ */
.tata-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 6px !important;
    border: none !important;
    font-family: Oswald, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.tata-btn:hover {
    opacity: .9;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.24);
    text-decoration: none !important;
    color: inherit;
}
.tata-btn:active { transform: translateY(0); }

.tata-btn--green  { background: #22a846; color: #fff !important; }
.tata-btn--dark   { background: #1a1a1a; color: #fff !important; }
.tata-btn--yellow { background: var(--bs-warning, #ffc107); color: #1a1a1a !important; }
.tata-btn--red    { background: var(--bs-tatacolor, #cc0000); color: #fff !important; }


/* ================================================================
   5. SECCIÓN SERVICIOS
   ================================================================ */
.tata-section {
    padding: 56px 0 60px;
    background: #fff;
}
.tata-section__title {
    font-family: Oswald, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.tata-section__title .tata-em { color: var(--bs-tatacolor); font-style: italic; }
.tata-section__divider {
    width: 48px;
    height: 3px;
    background: var(--bs-tatacolor, #cc0000);
    margin: 0 auto 38px;
    border: none;
}

/* Tarjetas */
.tata-card {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 28px 16px 24px;
    text-align: center;
    background: #fff;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .45s ease, transform .45s ease,
                box-shadow .25s, border-color .25s;
}
.tata-card--visible {
    opacity: 1;
    transform: translateY(0);
}
.tata-card:hover {
    box-shadow: 0 8px 28px rgba(204,0,0,.13);
    border-color: rgba(204,0,0,.2);
    transform: translateY(-4px);
}
.tata-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(204,0,0,.08);
    color: var(--bs-tatacolor, #cc0000);
    margin-bottom: 14px;
}
.tata-card__title {
    font-family: Oswald, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 8px;
}
.tata-card__desc {
    font-family: Oswald, Arial, sans-serif;
    font-size: .85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 480px) {
    .tata-card { padding: 18px 10px 16px; }
    .tata-card__icon { width: 54px; height: 54px; }
}


/* ================================================================
   6. POR QUÉ ELEGIRNOS
   ================================================================ */
.tata-porque {
    background: #1a1a1a;
    color: #fff;
    padding: 52px 0;
}
.tata-porque__placeholder {
    background: var(--bs-tatacolor, #cc0000);
    border-radius: 8px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.tata-porque__photo {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
    display: block;
}
.tata-porque__title {
    font-family: Oswald, sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 22px;
}
.tata-porque__title .tata-em { color: var(--bs-tatacolor); }
.tata-porque__list { list-style: none; padding: 0; margin: 0; }
.tata-porque__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .97rem;
    font-weight: 500;
    color: #ddd;
    margin-bottom: 13px;
}
.tata-porque__list li .fas {
    color: var(--bs-warning, #ffc107);
    font-size: 1.05rem;
    flex-shrink: 0;
}
@media (min-width: 768px) { .tata-porque__content { padding-left: 30px; } }
@media (max-width: 767px) {
    .tata-porque__title { font-size: 1.5rem; margin-top: 24px; }
    .tata-porque__placeholder { min-height: 180px; }
}


/* ================================================================
   7. RESEÑA GOOGLE
   ================================================================ */
.tata-reviews {
    background: #fff;
    padding: 26px 0;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}
.tata-reviews__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.tata-reviews__badge { display: flex; align-items: center; gap: 14px; }
.tata-reviews__glogo { width: 40px; height: 40px; flex-shrink: 0; }
.tata-reviews__num {
    font-family: Oswald, sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1;
}
.tata-reviews__stars .fas,
.tata-reviews__stars .fa-star-half-alt { color: var(--bs-warning, #ffc107); font-size: 1.05rem; }
.tata-reviews__link {
    font-family: Oswald, sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: var(--bs-tatacolor, #cc0000) !important;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: border-color .2s;
    white-space: nowrap;
}
.tata-reviews__link:hover { border-color: var(--bs-tatacolor); }


/* ================================================================
   8. BARRA CTA FIJA – solo móvil
   ================================================================ */
.tata-footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1045;
    background: #1a1a1a;
    display: flex;
    box-shadow: 0 -3px 16px rgba(0,0,0,.32);
}
.tata-footer-cta .tata-btn {
    flex: 1;
    border-radius: 0 !important;
    padding: 13px 6px !important;
    font-size: .78rem !important;
    justify-content: center;
    gap: 5px;
    box-shadow: none;
}
.tata-footer-cta .tata-btn:hover { transform: none; box-shadow: none; opacity: .9; }
.tata-footer-spacer { height: 58px; }


/* ================================================================
   9. RESPONSIVE ESCRITORIO
   ================================================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .tata-hero__title { font-size: 2.2rem; }
    .tata-hero__content { padding: 32px 24px 32px 32px; }
    .tata-hero__list-grid { grid-template-columns: 1fr; }
    .tata-stat__num { font-size: 1.35rem; }
}
@media (min-width: 992px) {
    .tata-hero__title { font-size: 3rem; }
}
@media (min-width: 1200px) {
    .tata-hero__title { font-size: 3.3rem; }
}


/* ================================================================
   LOGO – posicionamiento en el hero
   ================================================================ */

/* Fila logo + badge en escritorio */
.tata-hero__toprow {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Logo junto al badge (escritorio) */
.tata-logo-hero {
    width: 180px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
    transition: transform .25s;
}
.tata-logo-hero:hover {
    transform: scale(1.26) rotate(-2deg);
}

/* Logo flotante sobre la foto – escritorio */
.tata-hero__logo-foto {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
}
.tata-hero__logo-foto img {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,.45));
    transition: transform .25s;
}
.tata-hero__logo-foto img:hover {
    transform: scale(1.08);
}

/* Logo flotante sobre la foto – móvil (esquina superior derecha) */
.tata-hero__mobile-logo {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}
.tata-hero__mobile-logo img {
    width: 72px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* Logo en sección "por qué" (reemplaza el placeholder de texto) */
.tata-porque__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 2px solid rgba(204,0,0,.35);
    border-radius: 8px;
    min-height: 260px;
    padding: 30px;
}
.tata-porque__logo-wrap img {
    width: 100%;
    max-width: 260px;
    height: auto;
    filter: drop-shadow(0 4px 18px rgba(204,0,0,.4));
    transition: transform .3s;
}
.tata-porque__logo-wrap img:hover {
    transform: scale(1.05);
}
@media (max-width: 767px) {
    .tata-porque__logo-wrap { min-height: 180px; padding: 20px; }
    .tata-porque__logo-wrap img { max-width: 180px; }
    .tata-logo-hero { width: 64px; }
}
