/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body {
    font-family: 'Asap', sans-serif;
    color: #1c232b;
    background-color: #f5f5f5;
}


/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 60px; /* Define una altura fija para el header */
}

.logo img {
    height: 30px;
}

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: #1c232b;
    font-size: 16px;
    font-weight: 600;
}

.nav-links li a:hover{
    color: #38a8d4;
}

.menu-icon {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .logo img {
        padding-top: 5px;
    }

    .nav-links {
        position: absolute;
        top: 55px;
        right: -100%;
        background-color: white;
        flex-direction: column;
        width: 200px;
        padding: 20px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }
}


/* Sección Back to us */

.back-to-us-section {
    text-align: center;
    padding-top: 90px;
    position: relative; 
    background-image: url('../img/olas-2.png'); 
    background-repeat: no-repeat; 
    background-position: bottom left; 
    text-align: center; 
}

.back-to-us-text h1 {
    font-size: 9em;
    font-weight: bold;
    color: #38a8d4;
    word-spacing: -7px;
}

.back-to-us-image img {
    width: 100%; 
    height: auto; 
    display: block; 
}

.back-to-us-section p{
    font-size: 1.2em;
    line-height: 1.4em;
    color: #1c232b;
    margin: auto;
    text-align: center;
    width: 50%;
}

.floating-image {
    position: absolute;
    right: 20px; /* Margen derecho */
    bottom: 70px; /* Ajusta la posición más abajo */
    width: 300px; /* Tamaño más grande */
    height: auto; /* Mantiene las proporciones */
    z-index: 1;
}

/* General Button Styles */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn i {
    font-size: 18px;
}

/* Blue Button */
.btn-blue {
    background-color: #1c232b; /* Azul */
    color: #ffffff;
}

.btn-blue:hover {
    background-color: #0f161d;
    transform: scale(1.05);
}

/* Celeste Button */
.btn-celeste {
    background-color: #38a8d4; /* Celeste */
    color: #ffffff;
}

.btn-celeste:hover {
    background-color: #2d8ab1;
    transform: scale(1.05);
}

@media (max-width: 768px){
    .back-to-us-section{
        background-image: none;
    }

    .back-to-us-text h1 {
        font-size: 4.8em; 
    }

    .back-to-us-section p{
        margin-top: 15px;
        font-size: 1.2em;
        line-height: 1.3em;
        width: 85%;
    }

    .floating-image {
        display: none;
    }

    .button-group{
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }

    .btn{
      font-family: 'Asap', sans-serif;
      width: 70%;
      font-size: 21px;
    }
}

/* Features */

.shared-stories-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    gap: 20px;
}

.content {
    flex: 1;
    max-width: 600px;
}

.title {
    font-size: 38px;
    font-weight: bold;
    color: #38a8d4; 
    margin-bottom: 20px;
}

.content p {
    font-size: 17px;
    color: #1c232b; 
    margin-bottom: 20px;
    line-height: 1.5;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    font-size: 17px;
    color: #1c232b; /* Azul */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list svg {
    stroke: #38a8d4; /* Celeste */
    font-size: 20px;
}

/* Image Section */
.image {
    flex: 1;
    max-width: 225px;
}

.image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .shared-stories-section {
        flex-direction: column; 
    }

    .image {
        order: -1; 
    }

    .title {
        font-size: 35px;
    }

    .features-list li {
        display: block;
        font-size: 15px;
    }

    .features-list svg {
        font-size: 15px;
    }

}


/* Challenges */

.challenges-section {
    background-color: #38a8d4; /* Fondo celeste */
    color: #ffffff; /* Tipografía blanca */
    text-align: center;
    padding: 70px 20px 50px; /* Espaciado generoso */
    position: relative;
}

.lightning-image {
    position: absolute;
    top: -80px; /* Parte superior de la imagen sobresale sobre el fondo blanco */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.lightning-image img {
    width: 190px; /* Tamaño ajustado para la imagen */
    height: auto;
}

.content-challenge {
    position: relative;
    z-index: 2;
    margin-top: 100px; /* Ajustar espacio para la imagen */
}

.title-challenge {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.content-challenge p {
    display: block;
    margin: auto;
    width: 65%;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-weight: bold;
    background-color: #eec543; /* Botón azul oscuro */
    color: #ffffff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-download i {
    font-size: 18px;
}

.btn-download:hover {
    background-color: #0f161d;
    transform: scale(1.05);
}

@media (max-width: 768px){
   .content-challenge p {
        width: 99%;
        font-size: 19px;
    }
    .challenges-section{
        margin-top: 50px;
        padding: 10px 20px 50px;
    }
    .lightning-image img {
        width: 140px;
        height: auto;
    }
}


/* Humtales Values */

.humtales-values-section {
    color: #1c232b; 
    text-align: center;
    padding: 50px 20px;
}

.humtales-values-section .content-values {
    max-width: 800px; 
    margin: 0 auto; 
}

.humtales-values-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 400;
}

.humtales-values-section h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1c232b;
    margin-top: 50px;
}

/* Footer Image */

footer, .footer-image{
    text-align: center;
}

footer a{
    color: #00abd9;
}

@media (max-width: 768px){
    .footer-image img {
        max-width: 250px;
        padding-top: 20px;
    }  
}

/* FORMULARIO */

#registroForm{
    margin: auto;
    width: 60%;
    text-align: left;
}

/* Cada grupo de campo */
.campo {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

/* Etiqueta */
.campo label {
  margin-bottom: 0.4rem;
  font-weight: bold;
  color: #34495e;
}

/* Inputs */
.campo input {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* Input:focus */
.campo input:focus {
  outline: none;
  border-color: #2c3e50;
}

/* Mensaje de error */
.error {
  color: #c0392b;
  font-size: 0.875rem;
  margin-top: 0.2rem;
  visibility: hidden;
  height: 0;
}

/* Mostrar error */
.error.visible {
  visibility: visible;
  height: auto;
}

/* Resaltar input con error */
input.input-error {
  border-color: #c0392b;
}

/* Botón de envío */
.btn-enviar {
  background-color: #2c3e50;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.5rem;
  font-family: 'Asap', sans-serif;
  font-weight: bold;
}

.btn-enviar:hover {
  background-color: #1a252f;
}

/* Mensaje de estado (exitoso o error) */
#mensaje-estado {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
  margin: auto;
  width: 60%;
  color: #1c232b;
}

/* Oculto por defecto */
.mensaje-oculto {
  display: none;
}

/* Mensaje de éxito */
.mensaje-exito {
  display: block;
  background-color: #1c232b;
  color: #ffffff;
}

/* Mensaje de error */
.mensaje-error {
  display: block;
  background-color: #f2dede;
  color: #a94442;
}


@media (max-width: 768px){
    #registroForm{
        width: 90%;
    }
}