/* Importar fuentes */

@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Ancizar+Sans:ital,wght@0,100..1000;1,100..1000&family=Oswald:wght@200..700&family=Permanent+Marker&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Variables */

main {
    --brand-dark: #05101f;
    --brand-light: #2ee0d4;
}

/* Propiedades generales */

* {
    scroll-behavior: smooth;
}

#inicio {
    scroll-margin-top: 9.375rem;
}

#servicios,
#nosotros,
#contacto {
    scroll-margin-top: 1.875rem;
}

h1 {
    font-family: "Poppins", sans-serif;
    font-size: 4.375rem;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    cursor: url("./img/cursor.png") 0 0;   /* Cursor personalizado */
    transition: 250ms;
}

body.dark {
    background-color: #121212;
    color: #e0e0e0;
}

section {
    margin: 0 9.375rem 0 9.375rem;
}

.sun-wrapper {
    cursor: pointer;
width: 50px;
aspect-ratio: 1 / 1;
position: relative;
display: grid;
place-items: center;
}


.toggle {
    background-color: #f2ff42;
height: 20%;
width: 20%;
aspect-ratio: 1 / 1;
border-radius: 50%;
border: 1px solid #f2ff42;
position: relative;
z-index: 5;
transition: 250ms;
}


.rays {
position: absolute;
inset: 0;
display: grid;
place-items: center;
z-index: 1;
gap: 5px;
pointer-events: none;
}


.ray {
position: absolute;
width: 5%;
height: 28%;
top: 25%;
left: 50%;
transform-origin: 50% 90%;
border-radius: 2px;
background:#f2ff42;
}

.rays .ray:nth-child(1) { transform: translateX(-49%) rotate(0deg); }
.rays .ray:nth-child(2) { transform: translateX(-49%) rotate(45deg); }
.rays .ray:nth-child(3) { transform: translateX(-49%) rotate(90deg); }
.rays .ray:nth-child(4) { transform: translateX(-49%) rotate(135deg); }
.rays .ray:nth-child(5) { transform: translateX(-49%) rotate(180deg); }
.rays .ray:nth-child(6) { transform: translateX(-49%) rotate(225deg); }
.rays .ray:nth-child(7) { transform: translateX(-49%) rotate(270deg); }
.rays .ray:nth-child(8) { transform: translateX(-49%) rotate(315deg); }

.sun-wrapper.active .toggle {
--size: 25px;
  --offset: 130%;
  --x: 75%;
  --y: 25%;

  background: #f1f1f1;
  border-color: #f3f3f3;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  mask-image: radial-gradient(
    circle calc(var(--size) * 0.45) at var(--x) var(--y),
    transparent var(--offset),
    black calc(var(--offset) + 1%)
  );
}

.sun-wrapper.active .rays {
  opacity: 0;
  transform: scale(0.5);
}

.font-color {
    color: transparent;
    font-size: 4.375rem;
    -webkit-text-stroke-width: .0625rem;
    -webkit-text-stroke-color: #1ac8bc;
}

p {
    line-height: 1.6;
}

a{
    text-decoration: none;
}

/* Estilos del encabezado */

header {
    background-color: #05101f;
    width: 100vw;
    height: 6.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    position: fixed;
}



header img {
    height: 5rem;
    margin: .625rem .625rem .625rem 6.25rem;
    border: solid .0625rem transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

header img:hover {
    transform: scale(1.1);
}

header ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-right: 6.25rem;
}

header ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

header ul li a:hover {
    color: #2ee0d4;
}

.menu-hamburguesa {
    display: none;
}

/* Estilos del banner */

.banner {
    height: 94vh;
    /* Ocupa el alto total de la pantalla */
    width: 100%;
    padding-top: 3.125rem;
    background: url("img/banner.webp") no-repeat center center;
    background-size: cover;
    /* Ajusta la imagen para cubrir todo */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Estilos del Inicio */

.inicio {
    margin-top: 3.125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inicio-texto {
    font-size: 1.25rem;
    line-height: 1.6;
}


.inicio-texto h1 {
    margin-bottom: 0;
    view-timeline-name: --scroll-inicio-h1; 
    view-timeline-axis: block; 
    animation-range: entry 0% cover 100%; 
    animation-fill-mode: both; 
    animation-timeline: --scroll-inicio-h1; 
    animation-name: h1-inicio;
}

.inicio-texto h1.font-color {
    margin-top: 0rem;
    view-timeline-name: --scroll-inicio-span; 
    view-timeline-axis: block; 
    animation-range: entry 0% cover 60%; 
    animation-fill-mode: both; 
    animation-timeline: --scroll-inicio-span; 
    animation-name: span-inicio;
}

.inicio-img {
    view-timeline-name: --scroll-inicio-img; 
    view-timeline-axis: block; 
    animation-range: entry 25% cover 70%; 
    animation-fill-mode: both; 
    animation-timeline: --scroll-inicio-img; 
    animation-name: imagen-inicio;
}



.inicio img {
    width: 31.25rem;
    height: auto;
    margin-left: 3.125rem;
}

/* Estilos de Servicios */

.servicios {
    padding: 5rem 5%;
    text-align: center;
}

.servicios h2 {
    font-size: 3.125rem;
    margin-bottom: 3.125rem;
    color: #05101f;
}

body.dark .servicios h2 {
    color: #e0e0e0;
}

.servicios-contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.875rem;
}

.servicio {
    background: #fff;
    padding: 1.875rem 1.25rem;
    border-radius: .9375rem;
    border: solid .125rem #1ac8bc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .servicio {
    background: #1e1e1e;
    border: solid .125rem #2ee0d4;
}

.integrante:hover, .servicio:hover {
    transform: translateY(.9375rem);
    transform: rotateX(-15deg);
    box-shadow: 0 .5rem 0rem #1ac8bc;
}

.servicio h3 {
    font-size: 24px;
    margin-bottom: .9375rem;
    color: #05101f;
}

body.dark .servicio h3 {
    color: #e0e0e0;
}

.servicio p {
    font-size: 16px;
    line-height: 1.6;
}

.nosotros {
    align-items: center;
    gap: 3.75rem;
    padding: 5rem 0;
}

.nosotros h2 {
    font-size: 3.125rem;
    margin-bottom: 1.25rem;
    color: #05101f;
    text-align: center;
}

body.dark .nosotros h2 {
    color: #e0e0e0;
}

.nuestro-equipo {
    padding: 1.875rem 5% 2.9375rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.integrante {
    padding: .625rem 1.25rem;
    border: solid .125rem #1ac8bc;
    border-radius: .625rem;
    overflow: hidden;
    height: 368px;
    width: 20%;
    text-align: center;
    transition: 250ms;
}

.img-integrante {
    height: auto;
    object-fit: cover;

    & img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }
}

.rol {
    color: #7a7a7a;
    font-style: italic;
}

.integrante h3 {
    margin: .625rem 0 .3125rem 0;
    font-size: 1.25rem;
    color: #05101f;
}

body.dark .integrante h3 {
    color: #e0e0e0;
}

body.dark .rol {
    color: #b0b0b0;
}

.nosotros-contenedor {
    display: flex;
    justify-content: space-between;
    gap: 4.375rem;
}

.nosotros-texto {
    font-size: 1.25rem;
    line-height: 1.6;
    padding: 0 2%;
}

/* Estilos de Contacto */

.contacto {
    padding: 5rem 5%;
    text-align: center;
}

.contacto h2 {
    font-size: 3.125rem;
    margin-bottom: 1.875rem;
    color: #05101f;
}

body.dark .contacto h2 {
    color: #e0e0e0;
}

.contacto-formulario {
    max-width: 37.5rem;
    margin: 0 auto;
    margin-bottom: 3.125rem;
    background: #fff;
    padding: 2.5rem 1.875rem;
    align-items: center;
    border-radius: .9375rem;
    border: solid .125rem #1ac8bc;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
body.dark .contacto-formulario {
    background: #1e1e1e;
    border: solid .125rem #2ee0d4;
}

.contacto-formulario input,
.contacto-formulario textarea {
    width: 95%;
    padding: .9375rem;
    border: .125rem solid #05101f;
    border-radius: .5rem;
    font-size: 16px;
    font-family: inherit;
    resize: none;
    transition: border-color 0.3s;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
    border-color: #2ee0d4;
    outline: none;
}

body.dark .contacto-formulario input,
body.dark .contacto-formulario textarea {   
    background: #2e2e2e;
    color: #e0e0e0;
    border: 1px solid #e0e0e0;
}

.contacto-formulario button {
    background: transparent;
    color: #05101f;
    border: solid .125rem #05101f;
    padding: .9375rem 9.375rem;
    border-radius: .5rem;
    font-size: 17.6px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s;
}

body.dark .contacto-formulario button {
    color: #e0e0e0;
    border: solid .125rem #e0e0e0;
}

.contacto-formulario button:hover {
    background: #05101f;
    color: #fff;
}

body.dark .contacto-formulario button:hover {
    background: #e0e0e0;
    color: #05101f;
}

.contacto-info {
    display: flex;
    flex-direction: column;
}

.contacto-contenedor a {
    text-decoration: none;
    color: #05101f;
    font-size: 17.6px;
    transition: color 0.2s;
    margin-bottom: 1.25rem;
}

body.dark .contacto-contenedor a {
    color: #e0e0e0;
}

.contacto-contenedor a:hover {
    text-decoration: underline;
}

/* Estilos del pie de página */
footer {
    background: #05101f;
    color: white;
    text-align: center;
    padding: 1.25rem 0;
    margin-top: 3.125rem;
    padding: 3.125rem;
}

footer p {
    margin: 0 0 .625rem 0;
    font-size: .875rem;
    color: #ccc;
}

footer .redes-sociales {
    gap: 3.125rem;
}

footer a {
    color: #2ee0d4;
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

/* Estilos responsivos */
@media (max-width: 56.25rem) {
    section {
        margin: 0 1.875rem;
    }

    header {
        position: fixed;
    }

    header img {
        margin-left: 1.25rem;
    }

    header ul {
        margin-right: 1.25rem;
        gap: .5625rem;
    }

    .nosotros-contenedor {
        gap: 1.25rem;
    }

    .nosotros-contenedor img {
        width: 13.75rem;
        margin-right: 1.25rem;
    }

    .inicio img {
        width: 15.625rem;
        margin-left: 1.25rem;
    }
}

@media (max-width: 48rem) {

    header {
        position: fixed;
    }

    .listas {
        display: none;
    }

    .hamburguesa {
        display: flex;
        flex-direction: column;
        gap: .1875rem;
        height: 100%;
        justify-content: center;
        align-items: center;
        z-index: 100;
        width: 1.875rem;
        margin: 16px;
        cursor: pointer;
    }

    .hamburguesa span {
        border: .0625rem solid white;
        width: 100%;
        height: .0625rem;
        background-color: #fff;
        transition: 500ms;

    }

    .hamburguesa.activo .ham1 {
        transform: rotate(-55deg);
        border: .0625rem solid white;
    }

    .hamburguesa.activo .ham2 {
        transform: rotate(55deg);
    }

    .hamburguesa.activo .ham3 {
        height: 0;
        width: 0;
        border: none;
    }

    .menu-hamburguesa {
        display: none;
        position: absolute;
        top: 4.375rem;
        right: 1.25rem;
        background-color: #05101f;
        border: .125rem solid #2ee0d4;
        border-radius: .625rem;
        padding: .625rem;
        z-index: 99;
    }

    .menu-hamburguesa ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: .625rem;
    }

    .menu-hamburguesa ul li a {
        text-decoration: none;
        color: white;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .menu-hamburguesa ul li a:hover {
        color: #2ee0d4;
    }

    .menu-hamburguesa.mostrar {
        display: block;
    }



    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        top: 0;
        height: 4.375rem;
        position: fixed;

    }

    header ul li {
        list-style: none;
    }

    header ul li a {
        text-decoration: none;
        color: #ccc;
        font-size: 14.4px;
        display: block;
        padding: .625rem 0;
    }

    header img {
        height: 3.125rem;
        margin: .625rem 0;
    }

    section {
        margin: 0 .625rem;
    }

    .banner {
        height: 25vh;
        width: auto;
        margin-top: 7vh;
        padding-top: 1.25rem;
        font-size: 16px;
    }

    h1,
    .font-color {
        font-size: 32px;
        -webkit-text-stroke-width: .0625rem;
        letter-spacing: .125rem;
    }

    .inicio {
        flex-direction: column;
        margin-top: 1.25rem;
        gap: 1.25rem;
    }

    .inicio img {
        width: 100%;
        margin: 0;
    }

    .servicios h2,
    .nosotros h2,
    .contacto h2 {
        font-size: 32px;
    }

    .servicios {
        padding: 2.5rem 2%;
    }

    .servicios-contenedor {
        grid-template-columns: 1fr;
        gap: .9375rem;
    }

    .nosotros {
        padding: 2.5rem 0;
    }

    .integrante {
        width: 70%;
        height: auto;
    }

    .nosotros-contenedor {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .nosotros-contenedor img {
        width: 100%;
        margin: 0;
    }

    .contacto {
        padding: 2.5rem 2%;
    }

    .contacto-formulario {
        padding: 1.25rem .625rem;
    }

    .contacto-formulario button {
        padding: .625rem 0;
        width: 100%;
    }

    footer {
        padding: 1.25rem 0;
        margin-top: 1.25rem;
    }

    footer .redes-sociales {
        gap: 1.25rem;
    }
}

/* Estilos del botón de WhatsApp */

.whatsapp-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Botón principal */
.whatsapp-btn {
  width: 3.75rem;
  height: 3.75rem;
  background-color: #25d366;
  border: none;
  border-radius: 50%;
  box-shadow: 0 .3125rem .9375rem rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 .5rem 1.5625rem rgba(37, 211, 102, 0.4);
}

.whatsapp-btn img {
  width: 2rem;
  height: 2rem;
}

/* Lista oculta por defecto */
.whatsapp-list {
  display: none;
  flex-direction: column;
  margin-bottom: .625rem;
  background: #fff;
  border-radius: .625rem;
  box-shadow: 0 .3125rem .9375rem rgba(0,0,0,0.15);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.whatsapp-list a {
  padding: .625rem .9375rem;
  text-decoration: none;
  color: #05101f;
  font-family: system-ui, sans-serif;
  font-weight: 500;
  border-bottom: .0625rem solid #eee;
  transition: background 0.2s;
}

.coloring{
    color: #1ac8bc;
}

.whatsapp-btn i{
    color: white;
    font-size: 1.875rem;
}

.whatsapp-list a:last-child {
  border-bottom: none;
}

.whatsapp-list a:hover {
  background: #f1f1f1;
}

/* Animación de entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(.625rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cuando se despliega */
.whatsapp-list.active {
  display: flex;
}

/* Móviles */
@media (max-width: 30rem) {
  .whatsapp-btn {
    width: 3.4375rem;
    height: 3.4375rem;
  }
  .whatsapp-list a {
    font-size: .875rem;
    padding: .5rem .75rem;
  }

  
.inicio-texto h1 {
    margin-bottom: 0;
    view-timeline-name: --scroll-inicio-h1; 
    view-timeline-axis: block; 
    animation-range: entry 0% cover 0%; 
    animation-fill-mode: both; 
    animation-timeline: --scroll-inicio-h1; 
    animation-name: h1-inicio;
}

.inicio-texto h1.font-color {
    margin-top: 0rem;
    animation-range: entry 0% cover 0%; 

}

.inicio-img {

    animation-range: entry 10% cover 40%;  
}


}

@keyframes h1-inicio {
    0% {
        opacity: .5;
        transform: translateX(-4.375rem);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes span-inicio {
    0% {
        opacity: .5;
        transform: translateX(4.375rem);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes imagen-inicio {
    0% {
        opacity: .2;
        transform: translateZ(40px);
    }
    100% {
        opacity: 1;
        transform: translateZ(0);
    }
}