@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700; /* fuente variable */
  src: url('../google/Material_Symbols_Outlined/MaterialSymbolsOutlined-VariableFont_FILL\,GRAD\,opsz\,wght.ttf')
       format('truetype');
  font-display: block;
  /* Agrega esta línea para solucionar la advertencia */
  font-display: swap
}


.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';

  /* Variables del icono */
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;

  vertical-align: middle;
}

* {
  font-family: 'Montserrat', sans-serif;
}

body {
  font-family: 'Montserrat', sans-serif;
}

.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  width: auto;
  aspect-ratio: 716 / 682; /* Mismas dimensiones que pusiste en el HTML */
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #f1f2f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

/* ESPACIADO  */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem; /* aquí controlas TODO el espacio */
}


/* Estilo base del enlace */
.App-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 19px 22px;
    text-decoration: none;
    color: #9aa2b1;
    font-family: Avenir, sans-serif;
    transition: all 0.2s ease;
}

/* Fondo animado */
.App-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    background: #9F1F40;
    border-radius: 28px;
    transition: all 0.3s ease;
    z-index: 0;
}

/* Texto */
.App-link span {
    position: relative;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    z-index: 1;
}

/* Flecha */
.App-link svg {
    position: relative;
    margin-left: 10px;
    fill: none;
    stroke: #9aa2b1;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    z-index: 1;
}

/* Hover */
.App-link:hover::before {
    width: 100%;
    background: #9F1F40;
}

.App-link:hover svg {
    transform: translateX(0);
}

/* Click */
.App-link:active {
    transform: scale(0.96);
}


/* TITULO CON RELIEVE BRILLOSO*/ 
.titulo-brillo {
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    font-family: 'Segoe UI', sans-serif;

    /* Color base */
    color: #CAA25D;

    /* Gradiente animado */
    background: linear-gradient(
        120deg,
        #9e7d3c 0%,
        #CAA25D 40%,
        #fff1b8 50%,
        #CAA25D 60%,
        #9e7d3c 100%
    );

    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: brillo 2.5s linear infinite;
}

/* Animación del brillo */
@keyframes brillo {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}


/* ANIMACION DE SUBTITULO */
.split-text-container {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    text-transform: none;
    color: #282c34;
    overflow: hidden;
    
    /* Agregamos esto para asegurar que se centre si sobra espacio */
    justify-content: center; 
    width: 100%;
}

.text-part {
    display: inline-block;
    position: relative;
    transform: translateX(0);
    animation-duration: 2s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    
    /* Importante: evita que el texto se rompa en medio de la animación */
    white-space: nowrap; 
}

.text-part.left {
    transform: translateX(-200%);
    animation-name: slide-in-left;
}

.text-part.right {
    transform: translateX(200%);
    animation-name: slide-in-right;
}

@keyframes slide-in-left {
    0% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    0% {
        transform: translateX(200%);
    }
    100% {
        transform: translateX(0);
    }
}

.subtittle {
    color: #282c34;
}

/* --- NUEVO: MEDIA QUERY PARA MÓVIL --- */
/* --- ESTILOS SOLO PARA MÓVIL (Sin animación) --- */
@media (max-width: 768px) {
    
    .split-text-container {
        /* Cambiamos a columna vertical simple */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
        /* Ajuste de tamaño y espacio */
        width: 100%;
        gap: 0.2rem;
    }

    .text-part, 
    .text-part.left, 
    .text-part.right {
        /* 1. DESACTIVAR ANIMACIONES Y TRANSFORMACIONES */
        animation: none !important;    /* Detiene la animación */
        transform: none !important;    /* MUY IMPORTANTE: Trae el texto de vuelta a su lugar original (0) */
        
        /* 2. AJUSTES VISUALES */
        font-size: 1.5rem;             /* Tamaño adecuado para móvil */
        display: block;                /* Comportamiento de bloque normal */
        text-align: center;
        white-space: nowrap;           /* Evita que se rompan las frases */
    }
}