@tailwind base;
@tailwind components;
@tailwind utilities;


/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-padding-top: 15%; /* Ajusta al alto de tu header */
}

body {
    font-family: "Nunito", sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #276bff;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header .logo img {
    height: 90px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;

    
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #303030;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    
}

form label, form input, form textarea {
    margin-bottom: 12px;
    width: 100%;
  }
  

.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
    margin-bottom: 40px;
}

.form-container h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c3e50;
    
}

.form-container p {
    margin-bottom: 30px;
    color: #555;
}

.form-container label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-container button {
    background-color: #1abc9c;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-container button:hover {
    background-color: #16a085;
}

.hero-section {
  text-align: center;
  padding: 40px 20px;
  background-color: #f5f5f5;
}

.hero-section h1 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-section p {
  font-size: 18px;
  margin-bottom: 20px;
}
/* Contenedor de la animación */
.animation-container {
    display: none;
    justify-content: center;
    align-items: flex-end; /* Alinea elementos al fondo */
    position: relative;
    height: 300px;
    margin-top: 50px;
    overflow: hidden; /* Define el límite para los elementos */
}

/* Estilo para la carta */
.letter {
    position: absolute;
    width: 200px;
    height: 300px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
    padding: 20px;
    z-index: 1; /* Debe estar detrás del sobre */
    transform: translateY(-150%); /* Posición inicial fuera de vista */
    transition: transform 1.5s ease-in-out, opacity 1s ease-in-out;
}

/* Estilo para el sobre */
.manila-envelope {
    position: relative;
    width: 220px;
    height: 140px;
    background-color: #e3bb5c;
    border: 2px solid #dfc58d;
    bottom: 0;
    z-index: 2; /* Sobresale por encima de la carta */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    overflow: hidden; /* Limita lo que se muestra */
}

.why-us {
  background-color: #f9f9f9;
  border: 2px solid rgba(0, 132, 255, 0.685);
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
  padding: 40px 20px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;

}

.why-us h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

.why-us ul {
  list-style: none;
  padding: 0;
}

.why-us li {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.6;
}



.btn-destacado:hover {
        background-color: #1abc9c;
        transform: translateY(-2px);
    }

    footer {
        background-color: #2c3e50;
        color: white;
        padding: 20px 0;
        text-align: center;
        font-size: 14px;
    }

    .sobre-nosotros {
        background-color: #f4f4f4;
        padding: 40px 20px;
        text-align: center;
        
    }

    .sobre-nosotros h2 {
        color: #2c3e50;
        
        margin-bottom: 20px;
    }

    .sobre-nosotros p {
        max-width: 800px;
        margin: 0 auto;
        font-size: 16px;
        color: #555;
        line-height: 1.6;
    }

    .btn-destacado{
        border: 1px solid #16a085;
        border-radius: 20px;
        text-decoration: none;
        padding: 5px;
        color:#fcfcfc;
        background-color: #16a085;
        font-weight: bold;
    }

    .btn-destacado:hover{
        border: 1px solid #16a085;
        color:#16a085;
        background-color: #fcfcfc;

    }




/* Parte superior del sobre */
.manila-envelope::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: #eccc6b; /* Simula la tapa del sobre */
    top: 0;
}

/* Texto en el sobre */
.manila-envelope span {
    position: relative;
    z-index: 3; /* Asegura que el texto esté encima */
    font-size: 14px;
    color: white;
}

.manila-envelope .flap {
    position: absolute;
    top: -20px;
    left: 0;
    width: 220px;
    height: 40px;
    background-color: #f4c27c;
    border-radius: 4px 4px 0 0;
    transform: rotateX(90deg);
    animation: flapClose 3s 2.5s forwards ease-in-out;
}


/* Texto dentro de la carta */
.letter .content {
    margin-top: 50px;
    font-size: 14px;
    line-height: 1.5;
}

.letter .letter-text {
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

/* Sobre con texto */
.envelope {
    position: relative;
    width: 200px;
    height: 100px;
    background-color: #28a745; /* Verde para el sobre */
    border-radius: 5px;
    transform: rotate(15deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.envelope-text {
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transform: rotate(-15deg); /* Contrarrestar la rotación del sobre */
}

#enviar-btn {
    background-color: #2ECC71;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
  }
  

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .main-content {
        padding: 30px 10px;
    }
}




/* Animación de la carta hacia el sobre */
@keyframes slideIntoEnvelope {
    0% {
        transform: translateY(0);
    }
    90% {
        transform: translateY(100px); /* Se desliza hacia el sobre */
    }
    100% {
        transform: translateY(100px);
        opacity: 0; /* Desaparece al final */
    }
}

/* Animación del cierre del sobre */
@keyframes flapClose {
    0% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg); /* Cierra el sobre */
    }
}

@keyframes letterDrop {
    0% {
        transform: translateY(-200%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes envelopeClose {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}
