/* =========================================
   IMPORTACIÓN DE FUENTES
   ========================================= */
@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;
}

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

/* =========================================
   ESTILOS GENERALES
   ========================================= */
* {
    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;
}

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 (TABLET)
   Logo centrado arriba, nav abajo en fila
   ========================================= */
.header {
    background-color: var(--color-rojo);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.6s ease;
    gap: 12px;
}

.logo img {
    height: 60px;
    transition: .5s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

.navegacion ul {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.navegacion a {
    color: var(--color-blanco);
    font-family: 'Prompt', sans-serif;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    transition: .5s ease;
}

.navegacion a:hover {
    transform: scale(1.05);
    padding: 0 5px;
}


/* =========================================
   HERO / LEMA (TABLET)
   ========================================= */
.lema 
{
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../recursos/Imagenes/fondo-Portada.png');
    background-position: center;
    background-size: 120%; 
    background-repeat: no-repeat;
    width: 100%;
    max-width: 788px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    box-sizing: border-box;
    margin-top: -1px;
}
.lemaco {
    max-width: 450px;
    text-align: center;
}

.lematxt {
    max-width: 300px ;
    margin: 0 auto;
}

.lemaco h1 {
    color: var(--color-blanco);
    font-size: 32px;
    margin-bottom: 20px;
    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: 32px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 96px;
}

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

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


/* =========================================
   EXPERIENCIA (TABLET) - Grid 2x2
   ========================================= */
.beneficios {
    padding: 60px 40px;
    background-color: var(--color-blanco);
    text-align: center;
}

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

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
}

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

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

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

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

.beneficioitem p {
    color: var(--color-negro);
    width: 200px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
}


/* =========================================
   SERVICIOS (TABLET)
   ========================================= */
.tiposservicios {
    background-color: var(--color-rojo);
    padding: 60px 40px;
    text-align: center;
}

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

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

.card {
    height: 220px;
    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;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
}

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

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

/* FRENTE */
.card-front {
    background-color: var(--color-blanco);
    transform: rotateY(180deg);
    display: grid;
    grid-template-columns: 45% 55%;
    grid-template-rows: 48px 1fr;
}

/* Imagen ocupa toda la columna izquierda */
.card-image-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

/* Transforms exactos, igual que en PC */
.card:nth-child(1) .card-image-wrap img {
    transform: scale(1.15) translateY(-7%) translateX(4%);
}
.card:nth-child(2) .card-image-wrap img {
    transform: scale(1.05) translateX(2%);
}
.card:nth-child(3) .card-image-wrap img {
    transform: scale(1.55) translateY(-6%);
}

/* Header (columna der, fila 1) */
.card-header {
    grid-column: 2;
    grid-row: 1;
    background-color: var(--color-gris);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

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

/* Body (columna der, fila 2) */
.card-body {
    grid-column: 2;
    grid-row: 2;
    background-color: var(--color-blanco);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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


/* =========================================
   SOBRE NOSOTROS (TABLET)
   ========================================= */
.about {
    background-color: var(--color-negro);
    padding: 60px 40px;
    color: var(--color-blanco);
}

.aboutcontenido {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 40px;
    max-width: 100%;
    margin: 0 auto 60px auto;
}

.abouttexto {
    flex: none;
    width: 100%;
    text-align: center;
}

.abouttexto h2 {
    color: #D9D9D9;
    font-size: 40px;
    font-style: italic;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

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

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

.frase {
    font-weight: bold;
}

.aboutimagen {
    flex: none;
    width: 100%;
}

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

/* RÉCORDS: 45+ y 12+ en fila, 300+ centrado abajo */
.records {
    display: flex;
    grid-template-rows:auto;
    gap: 20px;
    max-width: 100%;
    margin: 40px auto 0 auto;
    width: 100%;
}


.recordsitem {
    text-align: center;
}

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

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


/* =========================================
   CERTIFICACIONES (TABLET) - Una por fila
   ========================================= */
.certificaciones {
    background-color: var(--color-blanco);
    padding: 60px 40px;
    text-align: center;
}

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

.certificacionesgrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 400px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

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

.certificaciones a {
    transition: 0.5s ease;
}

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


/* =========================================
   FOOTER (TABLET)
   ========================================= */
.footer 
{
    background-color: var(--color-rojo);
    height: 96px;
    padding: 0 100px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    color: var(--color-blanco);
    box-sizing: border-box;
}
.copyright p 
{
    padding-left: 15px;
    font-size: 10px;
    font-weight: bold;
    margin: 0;
}

.RRSS 
{
    display: flex;
    gap: 20px;
    align-items: center;
}

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

.RRSS img 
{
    height: 36px;
    object-fit: contain;
    padding-right: 15px;
}

.RRSS a:hover 
{
    transform: scale(1.1);
    padding-right: 5px;
}

/* Ocultar elementos móviles en pantallas grandes */
.menu-toggle 
{
    display: none;
}
.menu-logo-lateral 
{
    display: none;
}