/* Fuentes */
@font-face {
    font-family: 'Noto Sans', sans-serif;
    src: url('fonts/Noto/NotoSans-Italic-VariableFont_wdth,wght.ttf');
}

@font-face {
    font-family: 'Poppins', sans-serif;
    src: url('fonts/Poppins/Poppins-Medium.ttf');
}

@font-face {
    font-family: 'Philosopher';
    src: url('fonts/Philosopher/Philosopher-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/Playfair/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'New Amsterdam';
    src: url('fonts/Londrina_Solid,New_Amsterdam/New_Amsterdam/NewAmsterdam-Regular.ttf');
}

@font-face {
    font-family: 'Bungee Spice';
    src: url('fonts/Bungee_Spice/BungeeSpice-Regular.ttf') format('truetype');
}

/* ===== ESTILOS GENERALES ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
}

:root {
    --background-color-1_main-header: #70dceb;
    --background-color: #fafbfe;
    --color_text-1: #0e0e0e;
    --color_text-2: #ffbb62;
    --color_text-3: #ff3558;
    --text-color-hamburger: #743a70;
    --text-color_hamburger-hover: #f7ffcb;
    --Font_Family-1: 'Poppins', sans-serif;
    --font-Family-2: 'Philosopher', sans-serif;
    --font-Family-3: 'Noto Sans', sans-serif;
    --Font-Family-App: 'Playfair Display', serif;
    --Font-Family-4: 'New Amsterdam', sans-serif;
    --Font-Family-5: 'Bungee Spice', sans-serif;
    --lowText_font_size: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    display: block;
    justify-content: center;
    align-items: flex-start;
    margin-top: 100px;
    height: 100vh;
    background: var(--background-color);
}

/***HEADER***/
header {
    top: 0;
    left: 0;
    width: 100%;
    height: max-content;
    position: fixed;
    z-index: 1010;
    margin: 0 auto;
    background-color: #6cdbea;
    padding: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

#containerApp {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 5px !important;
}

.logo-image {
    width: 120px;
}

.menuApp {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.menuApp #navApp {
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#navApp > * {
    margin: 0 20px;
    justify-content: space-between;
}

#LogoyNommbreApp {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    align-items: center;
    margin: 0 20px;
}

.menuApp #navApp ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.menuApp #navApp ul li {
    list-style: none;
    margin: 20px 16px;
}

.menuApp #navApp ul li a {
    font-family: "New Amsterdam", sans-serif;
    text-shadow: 2px 2px 1px #766457;
    color: var(--background-color);
    font-size: 1.5em;
    background-color: #ce5569;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.4s ease;
    box-shadow: 5px 8px 5px #35292940;
    letter-spacing: 0.05em;
}

.menuApp #navApp ul li a:hover {
    letter-spacing: 1px;
    color: #f2f2f2; 
    background-color: #ba364c;
    text-shadow: 2px 2px 3px var(--shadow-btn), 2px 2px 3px var(--shadow-btn);
}

.menuApp #navApp ul li a:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: inset 1 2px 3px #988170;
    transition: all 0.1s ease;
    background-color: #ffcc57; 
    text-shadow: 1px 1px 5px var(--shadow-btn), 2px 2px 3px var(--shadow-btn);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes rollIn {
    0% {
        transform: translateX(-100%) rotate(-360deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}

#navApp .logoApp {
    animation: rollIn 2s ease-out forwards;
    box-sizing: content-box;
}

#navApp h1 {
    font-family: 'New Amsterdam';
    font-size: 2.5rem;    
    color: #d26056;
    text-shadow: 1px 1px 2px #f9f5f5, 2px 2px 4px #d2b48c, 3px 3px 6px #d26056;
    letter-spacing: 0.05em; 
    overflow: hidden;
    border-right: .15em solid var(--text-color-hamburger);
    white-space: nowrap; 
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink .75s step-end infinite; 
}

/* ===== APLICACIÓN ===== */

.container {
    display: flex;
    justify-content: space-between;
}

h1 {
    font-family: var(--Font-Family-App);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color_text-1);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 3px rgb(81, 78, 78);
    margin-top: 80px;
}

.containerMovilesV2 {
    width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 50px solid transparent;
    border-radius: 10px;
    margin: 20px auto;
}

.movilesV2 {
    width: 100%;
    background-color: #fcfcfc50;
    border: 1px solid #000000;
    border-radius: 5px;
    margin: 0;
    justify-content: center;
    padding: 35px;
    color: #333333;
    box-shadow: var(--box_shadow-primary);
}

.movilesV2 a,
footer a {
    color: #ff3558;
    font-weight: bold;
    margin-right: 10px;
    text-decoration: none;
    transition: all 400ms;
}

.movilesV2 a:hover,
footer a:hover {
    color: #ffbb62;
    font-weight: bold;
    text-shadow: 0px 0px 1px var(--color_text-2);
}

footer a:hover {
    text-shadow: 0px 0px 1px var(--color_text-2), 1px 1px 2px var(--color_text-3);
}

/*** Inicio Aplicación De Letras A Números ***/
.Aplicacion {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    width: 1000px;
    height: max-content;
    margin: 150px auto 0;
    background-color: #ffffff;
    border: 1px solid #FFFFF0;
    box-shadow: 0px 1px 5px #9ad0d3;
    border-radius: 25px;
    padding: 5px;
}

.app-logo {
    width: 700px;
    height: auto;
    margin: 0 auto;
    padding: 15px;
    border-radius: 10px;
    background-color: transparent;
}



.intro{
    background-color: #c35f5f;
    border: 1px solid #28282880;
}

.resultado {
    background-color: #ffbb62;
    border: 1px solid #28282880;
    color: #d26056;
    font-size: 14px;
    text-align: left;
    font-family: var(--Font-Family-5);
    transition: all 0.4s ease-in-out;
}
/*
.Aplicacion img {
    width: 700px;
    margin: 0 auto;
}*/

.Aplicacion .TituloApp {
    width: 100%;
    font-family: 'Lobster';
    color: #9ad0d3;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: none; 
}

.Aplicacion input[type="text"] {
    display: flex;
    flex-grow: 1;
    width: 720px !important;
    height: auto;
    padding: 5px;
    border: 1px solid #28282880;
    border-radius: 25px;
    box-shadow: 0px 1px 1px #9ad0d3;
    margin: 10px;
    box-sizing: border-box;
    color: #363636;
    font-size: 23px;
    text-align: center;
    font-family: var(--font-Family-3);
}

.intro, .resultado {
    display: flex;
    justify-content: center;
    gap: 3px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    height: content;
    padding: 5px;
    margin: 10px;
    margin-top: 20px;
    border-radius: 10px;
}

.intro img, .resultado img {
    width: 2.5em;
    height: 2.5em;
    margin: 0 5px;
}

.Aplicacion input[type="text"]:hover {
    border-bottom: 4px solid #9ad0d3;
    background-color: var(--background-color);
    cursor: pointer;
}

.Aplicacion label {
    display: inline-block;
    width: 100%;
    color: var(--background-color);
    margin: 10px;
    margin-top: 20px;
    padding: 3px;
    box-sizing: border-box;
}

.Aplicacion .btnConvertir {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25%;
    height: 45px;
    background-color: #d26056;
    font-weight: bold;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
    box-shadow: 0px 1px 5px #9ad0d3;
}

.Aplicacion .btnConvertir #btnConvertir{
    color: #ffffff;
    font-weight: bold;
    font-size: 20px;
    font-family: var(--Font-Family-4);
    text-decoration: none;
    text-align: center;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.4s ease-in-out;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 2px #00000080; 
}

.Aplicacion .btnConvertir:hover {
    background-color: #ffbb62;
    box-shadow: 0px 1px 5px #9ad0d3;
}

.Aplicacion .btnConvertir a {
    color: #cccc;
}

.Aplicacion .Conversion {
    width: 75%;
    height: max-content;
    overflow-y: auto;
    background-color: #FFFFFF;
    padding: 15px;
    border: 1px solid #28282880;
    border-radius: 25px;
    box-shadow: 0px 1px 1px #9ad0d3;
    margin: 10px;
    box-sizing: border-box;
    color: #d26056;
    font-size: 14px;
    text-align: left;
    font-family: var(--Font-Family-5);
    transition: all 0.4s ease-in-out;
}

.tituloConversion {
    font-size: 16px;
    color: var(--background-color);
    margin-top: 40px;
}

/* ===== FIN APLICACIÓN ===== */

.elegant-separator {
    border: 0;
    height: 10px;
    background: linear-gradient(to left, #f0f0f0, #8c8c8c, #f0f0f0);
    margin: 20px 0;
}

.Aplicacion .esquinas {
    position: relative;
    display: flex;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-top: 20px;
}

.Aplicacion .esquinas .esquinaIzq {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: auto;
    border-radius: 20px;
}

.Aplicacion .esquinas .esquinaDer {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: auto;
    border-radius: 20px;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 45px;
    background-color: var(--background-color-1_main-header);
    color: var(--color_text-1);
    font-size: 12px;
    font-weight: 600;
    bottom: 0;
    left: 0;
    box-shadow: 1px 1px 3px #000000;
}

footer p {
    font-size: 14px;
    font-weight: 600;
    color: var(--color_text-1);
}

/* Contenedor de cada resultado */
.palabra-resultado {
  display: block;
  margin: 12px 0;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #f5f5f5;
  border-left: 4px solid #d26056;
  font-family: var(--font-Family-3);
  transition: all 0.3s ease;
}

.palabra-resultado:hover {
  background-color: #e8e8e8;
  transform: translateX(5px);
}

/* Palabra en mayúsculas */
.palabra-texto {
  color: #d26056;
  font-size: 1.1em;
  letter-spacing: 1px;
}

/* Valores numéricos entre corchetes */
.palabra-valores {
  color: #2980b9;
  font-family: monospace;
  margin: 0 5px;
}

/* Resultado de la suma */
.palabra-suma {
  color: #27ae60;
  font-weight: bold;
}

/* Estilo para la última palabra con el total general */
.palabra-resultado:last-of-type {
  margin-top: 20px;
  border-left: 4px solid #27ae60;
  background-color: #f0f7f4;
}

/* Estilo consistente para el input al recibir foco */
.Aplicacion input[type="text"]:focus {
  outline: none;
  border-color: #9ad0d3;
  box-shadow: 0 0 5px rgba(154, 208, 211, 0.6);
  background-color: #ffffff;
  color: #444444;
  font-family: var(--font-Family-3);
  font-size: 23px;
  font-style: italic;
  text-align: center;
}

/* Estilo para placeholder del input */
.Aplicacion input[type="text"]::placeholder {
  color: #666666;
  opacity: 0.7;
  font-style: italic;
  font-family: var(--font-Family-3);
}  

/* Estilos para la calculadora visual */
.calculadora-container {
  margin: 20px auto;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 10px;
  max-width: 250px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.calculadora-titulo {
  text-align: center;
  color: #363636;
  margin-bottom: 10px;
  font-family: var(--font-Family-2) !important; 
  font-size: 16px; 
  font-weight: bold;
}

.calculadora {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calculadora-fila {
  display: flex;
  justify-content: space-between;
}

.calculadora-boton {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  background-color: #e0e0e0;
  color: #666666;
  cursor: default;
  transition: all 0.3s ease;
  font-family: var(--font-Family-2);
  font-weight: bold;
}

.calculadora-espacio {
  width: 50px;
  height: 50px;
}

/* Estilo para los botones iluminados */
.calculadora-boton.iluminado {
  background-color: #27ae60;
  color: white;
  box-shadow: 1 1 5px #27ae60;
  transform: scale(1.1);
  font-weight: bold;
}


/* ===== MEDIA QUERY ===== */
@media (max-width: 1135px) {

    /***Header***/

    header #containerApp .menuApp #navApp ul {
        display: flex;
        flex-direction: column-reverse;
        gap: 0;
        align-items: center;
        justify-content: space-evenly;
        flex-wrap: nowrap;
        margin-top: 0;
    }

    .menuApp #navApp ul li {
        margin: 15px;
    }

    /***Aplicación***/

    .Aplicacion {
        width: 800px;
        margin-top: 200px;
    }



    .Aplicacion img {
        width: 95%;
    }

    .Aplicacion .TituloApp {
        font-size: 60px;

    }

    .intro, .resultado {
        display:flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        height: max-content;
        padding: 5px;
        margin: 10px;
        margin-top: 20px;
        border-radius: 10px;
        background-color: #c35f5f;
        border: 1px solid #28282880;
    }

    .intro img, .resultado img {
        width: 50px;
        height: auto;
        margin: 0 5px;
    }

    .resultado {
        background-color: #ffbb62;
        border: 1px solid #28282880;
    }

    

    .Aplicacion #btnConvertir a{
        width: 100%;
        margin-top: 0;
        font-size: 60px;
        color: #35843a;
        

    } 

    .Aplicacion .btnConvertir a#btnConvertir {
  font-size: 24px !important; /* Ajusta al tamaño que desees */
  font-family: var(--Font-Family-4); /* Mantén la fuente */
  text-shadow: 2px 2px 2px #00000080; /* Mantén la sombra */
  letter-spacing: 1.5px; /* Mantén el espaciado */
}

.Aplicacion .btnConvertir a#btnConvertir:hover {
  transform: scale(1.05); /* Efecto de agrandar al pasar el cursor */
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5); /* Sombra más pronunciada */
}
  

    .Aplicacion input[type="text"] {
        display: flex;
        flex-grow: 1;
        width: 600px !important;
        height: max-content;
        padding: 5px;
        border: 1px solid #28282880;
        border-radius: 25px;
        box-shadow: 0px 1px 1px #9ad0d3;
        margin: 10px;
        box-sizing: border-box;
        color: #000000;
        font-size: 23px;
        text-align: center;
        font-family: var(--font-Family-3);
    }

}

@media (max-width: 800px) {
    .Aplicacion {
        width: 95%;
        margin-top: 180px;
    }

}

@media (max-width: 744px) {
    html, body {
        margin: 0;
        padding: 0;
    }

    header {
        position: relative;
        top: 0;
        margin-top: 0;
    }

    header #containerApp .menuApp #navApp {
        flex-direction: column;
    }
.Aplicacion {
      
        margin-top: 40px;
    }
    

    .Aplicacion input[type="text"] {
        width: 520px !important;
        height: max-content;
        padding: 5px;
       
    }
}

/* Combinando media queries similares */
@media (max-width: 672px) {
    #menu ul li a {
        font-size: 14px;
    }

    html, body {
        margin: 0;
        padding: 0;
    }

    header {
        position: relative;
        top: 0;
        margin-top: 0;
    }

    .menuApp{
        width: 100%;
        display: flex;
    }

    header #containerApp .menuApp #navApp {
        flex-direction: column;
    }
} 

@media (max-width: 659px) { 

    .menuApp{
        width: 98%;
        display: flex;
    }

    .Aplicacion input[type="text"] {
        width: 450px !important;
        height: max-content;
        padding: 5px;
        font-size: 20px;
       
    } 
    .Aplicacion input[type="text"]:focus {
        font-size: 20px;
    }

     

}

@media (max-width: 586px) {

    

    .Aplicacion input[type="text"] {
        width: 410px !important;
        height: max-content;
        padding: 5px;
       
    }

}

@media (max-width: 544px) {

        .Aplicacion input[type="text"] {
        width: 370px !important;
        height: max-content;
        font-size: 18PX;
        margin: 0px;
      
       
    } 

    .Aplicacion .btnConvertir {
        width: 55%;
        height: 50px;
        font-size: 21px;
        padding: 5px;  
    }
     .Aplicacion .btnConvertir a#btnConvertir {
  font-size: 21px !important;
}

}  


@media (max-width: 500px) {
  .calculadora-boton {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .calculadora-espacio {
    width: 40px;
    height: 40px;
  }
  
  .calculadora-container {
    max-width: 200px;
  }
}

@media (max-width: 482px) {

    

    .Aplicacion input[type="text"] {
        width: 350px !important;
        height: max-content;
        font-size: 18PX;
        margin: 0px;
      
       
    }

}

@media (max-width: 460px) {
    .Aplicacion {
        width: 97%;
        margin-top: 40px;
    }

   #LogoyNommbreApp {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    

    .Aplicacion input[type="text"] {
        width: 310px !important;
        height: max-content;
        padding: 5px;
        font-size: 16px;
        margin: 0px;
       
    }

    
} 

.containerMovilesV2 {
    width: 100%;
    padding: 0;
}

@media (max-width: 430px) {
        .Aplicacion input[type="text"] {
        width: 300px !important;
        height: max-content;
        font-size: 14px;
        font-weight: bold;
        margin: 0px;
       
    }
    .TituloApp {
        font-size: 40px !important;
        border-bottom: 1px solid #201d1d15;
        padding: 10px;
        border-radius: 10px;
        margin: 0 auto;
    }

     .app-logo {
        width: 100%;
        height: auto;
        margin: 0 auto;
        padding: 5px;
        
    }
}

@media (max-width: 420px) {
    

    .containerMovilesV2 {
        width: 100%;
        padding: 0;
       
    }

    
    .Aplicacion .btnConvertir a#btnConvertir {
  font-size: 20px !important;
}
}  



@media (max-width: 410px) {
    .Aplicacion input[type="text"] {
        width: 290px !important;
        height: max-content;
        font-size: 20px;
        padding: 15px;
        margin: 0px;
       
    }

    footer {
        width: 100%;
        font-size: 12px;
        padding: 10px;
    }
}

@media (max-width: 388px) {
    .Aplicacion input[type="text"] {
        width: 280px !important;
        height: max-content;
        font-size: 18px;
        padding: 14px;
        margin: 0px;
       
    } 
    footer {
        width: 100%;
        font-size: 10px;
        padding: 2px;
    }

    footer p {
        
        padding: 5px;
        font-size: 10px;
        font-weight: 600;
        color: var(--color_text-1);
    }
    footer a{
        font-size: 10px;
        margin-right: 5px;
    }
}

    @media (max-width: 378px) {
    .Aplicacion input[type="text"] {
        width: 240px !important;
        height: max-content;
        font-size: 16px;
        
       
    }

    .resultado {
        gap: 1px;
        padding: 1px;
    }
}

  @media (max-width: 351px) {
    .Aplicacion .Conversion {
        width: 100%;
        height: max-content;
        overflow-y: auto;
        background-color: #FFFFFF;
        padding: 15px;
        border: 1px solid #28282880;
        border-radius: 25px;
        box-shadow: 0px 1px 1px #9ad0d3;
        margin: 10px auto; /* Centrado horizontal */
        box-sizing: border-box;
        color: #d26056;
        font-size: 14px;
        text-align: left;
        font-family: var(--Font-Family-5);
        transition: all 0.4s ease-in-out;
    }
     
    
}  

@media (max-width: 337px) {
    #LogoyNommbreApp h1 {
        font-size: 37px !important;
        margin: 0 auto;
        
    }

     #LogoyNommbreApp img {
        width: 80px !important;
        height:auto !important;
        margin: 0 auto;
        
     }

    #navApp ul a{
        font-size: 20px !important;
        margin: 0 auto;
        
    }

    
    .Aplicacion input[type="text"] {
        width: 220px !important;
        height: max-content;
        font-size: 14px;

}
}

@media (max-width: 317px) {

    

    .TituloApp {
        font-size: 35px !important;
        margin: 0 auto;
        padding: 10px;
        border-bottom: 1px solid #201d1d15;
        border-radius: 10px;
    }
    
    .Aplicacion input[type="text"] {
        width: 200px !important;
        height: max-content;
        font-size: 14px;
    } /* ← Esta llave estaba cerrando incorrectamente */

    .containerMovilesV2 {
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    .movilesV2 { /* ← Este selector estaba faltando */
        width: 100%;
        padding: 0;
        margin: 0 auto;
        border: none;
        box-shadow: none;
    }
}