/* =========================================
   IMPORTACIÓN DE FUENTES Y COLORES
   ========================================= */
@font-face { font-family: 'Mulish'; src: url('../recursos/Tipografias/Mulish/Mulish-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Mulish'; src: url('../recursos/Tipografias/Mulish/Mulish-Bold.ttf') format('truetype'); font-weight: bold; font-style: normal; }
@font-face { font-family: 'Prompt'; src: url('../recursos/Tipografias/Prompt/Prompt-Bold.ttf') format('truetype'); font-weight: bold; font-style: normal; }
@font-face { font-family: 'Prompt'; src: url('../recursos/Tipografias/Prompt/Prompt-BlackItalic.ttf') format('truetype'); font-weight: 900; font-style: italic; }

:root {
    --color-rojo: #ac1416;
    --color-blanco: #ffffff;
    --color-negro: #001a23;
    --color-gris: #d9d9d9;
}

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

body {
    font-family: 'Mulish', sans-serif;
    color: var(--color-negro);
    background-color: var(--color-blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Prompt', sans-serif; margin-bottom: 15px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* =========================================
   HEADER Y MENÚ LATERAL (MÓVIL)
   ========================================= */
.header {
    background-color: var(--color-rojo);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.6s ease;
}

.logo img { height: 40px; }

/* Botón Hamburguesa */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 2000;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-blanco);
    border-radius: 3px;
}

.menu-toggle.oculto {
    display: none;
}

/* Panel Lateral */
.navegacion {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background-color: var(--color-rojo);
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    z-index: 1500;
}

.navegacion.activo { right: 0; }

.menu-logo-lateral {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.menu-logo-lateral img { height: 50px; }

.navegacion ul {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.navegacion a {
    color: var(--color-blanco);
    font-family: 'Prompt', sans-serif;
    font-weight: bold;
    font-size: 18px;
    display: block;
}

/* =========================================
   HERO / LEMA (MÓVIL)
   ========================================= */
.lema {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../recursos/Imagenes/fondo-Portada.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    margin-top: -1px;
}

.lemaco {
    text-align: center;
    width: 100%;
}

.lematxt {
    max-width: 100%;
    margin: 0 auto;
}

.lemaco h1 {
    color: var(--color-blanco);
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
}

.lemaco p {
    color: var(--color-blanco);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* Botones */
.button-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.btnrs, .btnct {
    background-color: var(--color-rojo);
    color: var(--color-blanco);
    font-family: 'Prompt', sans-serif;
    font-weight: bold;
    font-size: 16px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.5s ease;
    width: 175px;
    text-align: center;
}

.btnrs:hover, .btnct:hover {
    transform: scale(1.03);
    background-color: var(--color-negro);
}

/* =========================================
   EXPERIENCIA (MÓVIL)
   ========================================= */
.beneficios {
    padding: 50px 20px;
    background-color: var(--color-blanco);
    text-align: center;
}

.beneficios h2 {
    color: var(--color-negro);
    font-size: 28px;
    margin-bottom: 40px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.beneficioitem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.beneficioitem img {
    height: 120px;
    object-fit: contain;
    transition: 0.3s ease;
}

.beneficioitem:hover img {
    transform: scale(1.1);
    padding-bottom: 10px;
}

.beneficioitem h3 {
    margin-top: 16px;
    color: var(--color-negro);
    font-size: 20px;
    margin-bottom: 8px;
}

.beneficioitem p {
    color: var(--color-negro);
    width: 100%;
    max-width: 250px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0 auto;
}

/* =========================================
   SERVICIOS (MÓVIL) — con efecto flip
   ========================================= */
.tiposservicios {
    background-color: var(--color-rojo);
    padding: 50px 20px;
    text-align: center;
}

.tiposservicios h2 {
    color: var(--color-blanco);
    font-size: 28px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

/* Estructura de la Tarjeta */
.card {
    height: 400px;
    perspective: 1000px;
    background: transparent;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* El giro — en móvil se activa con clase JS en vez de hover */
.card:hover .card-inner,
.card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* Caras Frontal y Trasera */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- REVERSO --- */
.card-back {
    background-color: var(--color-negro);
    display: flex;
    width: 100%;
    height: 100%;
}

.card-back img {
    transform: scale(2.5) translate(-9%);
    width: auto;
    opacity: 0.05;
    margin: auto;
}

/* --- FRONTAL --- */
.card-front {
    background-color: var(--color-blanco);
    transform: rotateY(180deg);
}

.card-image-wrap {
    width: 100%;
    height: 45%;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.card:nth-child(3) .card-image-wrap img {
    transform: scale(1.75) translateY(-6%);
}

.card:nth-child(2) .card-image-wrap img {
    transform: scale(1.25) translateY(-10%) translateX(-4%);
}

.card:nth-child(1) .card-image-wrap img {
    transform: scale(1.3) translateY(-7%);
}

.card-header {
    background-color: #D9D9D9;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

.card-header h3 {
    color: var(--color-negro);
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.card-body {
    background-color: var(--color-blanco);
    flex-grow: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-body p {
    color: var(--color-negro);
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* =========================================
   SOBRE NOSOTROS Y RÉCORDS (MÓVIL)
   ========================================= */
.about {
    background-color: var(--color-negro);
    padding: 50px 20px;
    color: var(--color-blanco);
    text-align: center;
}

.aboutcontenido {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
    margin-bottom: 40px;
}

.abouttexto {
    flex: 1;
}

.abouttexto h2 {
    color: #D9D9D9;
    font-size: 36px;
    font-style: italic;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.abouttexto h3 {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.abouttexto p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.frase {
    font-weight: bold;
}

.aboutimagen {
    flex: 1;
}

.aboutimagen img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block;
}

/* RÉCORDS — 1 columna en móvil */
.records {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.recordsitem {
    text-align: center;
}

.recordsitem h2 {
    font-size: 50px;
    font-style: italic;
    margin-bottom: 8px;
    color: var(--color-blanco);
    line-height: 1;
}

.recordsitem p {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-blanco);
    line-height: 1.2;
    margin: 0;
}

/* =========================================
   CERTIFICACIONES (MÓVIL)
   ========================================= */
.certificaciones {
    background-color: var(--color-blanco);
    padding: 50px 20px;
    text-align: center;
}

.certificaciones h2 {
    color: var(--color-negro);
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 40px;
}

.certificacionesgrid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.certificacionesgrid img {
    max-width: 200px;
    max-height: 100px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.certificaciones a {
    transition: 0.5s ease;
}

.certificaciones a:hover {
    transform: scale(1.1);
}

/* =========================================
   FOOTER (MÓVIL) — 2 FILAS
   ========================================= */
.footer {
    background-color: var(--color-rojo);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    gap: 20px;
    height: auto;
}

.RRSS {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.RRSS a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease;
}

.RRSS a:hover {
    transform: scale(1.1);
}

.RRSS img {
    height: 40px;
    object-fit: contain;
    padding: 0;
}

.copyright p {
    padding: 0;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    color: var(--color-blanco);
    margin: 0;
}
