/*
Theme Name: Despacho Contable ToF
Author: Diego Abundio Adrian Anaya| ITERATION
Version: 2025
*/

/* Configuraciones */
*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Sans-Serif';
  min-width: 100%;
  min-height: 100vh;
  margin: 0;
  background-color: #f9f9f9;
  color: #1a1a1a;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Encabezado */
.encabezado {
  font-family: 'Plus Jakarta Sans', 'Sans-Serif';	
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: #ffffff;
  border-bottom: 4px solid #ddd;
}

.logo {
  height: 80px;
}

.brand:hover{
  animation: tada;
  animation-duration: 2s;
}

.menu ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
}

.menu a {
  font-size: 22px;
  color: #002b5c;
  font-weight: 500;
  transition: color 0.3s ease;
}

@media screen and (max-width: 1092px) {
  .menu a {
  font-size: 16px;
  }
}

@media screen and (max-width: 976px) {
  .menu a {
  font-size: 12px;
  }
}

@media screen and (max-width: 802px) {
    .menu ul {
    display: none;
    }
	.encabezado{
	justify-content: center;
	}
}

.menu a:hover {
  color: #0077cc;
  font-weight: 900;
}

/* Banner */
.hero-banner {
  background-image: url(assets/Oso.jpg);
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 100px;
}

.contenido-banner {
  background-color: rgba(199, 199, 199, 0.8);
  padding: 20px;
  border-radius: 40px;
  max-width: 600px;
  text-align: left;
}

.contenido-banner h2 {
  font-size: 64px;
  margin-bottom: 20px;
  color: #384F72;
  font-weight: 700;
  line-height: 1.1;
}

.contenido-banner p {
  font-size: 22px;
  margin-bottom: 30px;
  color: #455c76;
  font-weight: 400;
  margin-left: 0;
  margin-right: 20px; 
  text-align: left;
}

@media screen and (max-width: 800px) {
    .hero-banner {
        background-size: 
        background-attachment: initial;
    }
	.contenido-banner {
	  	max-width: 400px;
	}
}

@media screen and (max-width: 500px) {
    .hero-banner {
        background-position: center center;
		padding: 20px;
    }
	.contenido-banner {
	  	max-width: 400px;
	}
}

.boton {
  display: inline-block;
  background-color: #002b5c;
  color: #ffffff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
}

.boton:hover {
  background-color: #dfe3e9;
  color: #002b5c;
}

/* Servicios */
.servicios {
  padding: 2em;
  padding-top: 2em;
  background-color: #f4f8fc;
  text-align: center;
}

.servicios h2 {
  font-size: 62px;
  color: #384F72;
  margin-bottom: 30px;
}

@media screen and (max-width: 574px) {
  .servicios h2 {
  font-size: 40px;
  }
}

.servicios p {
  font-size: 22px;
  color: #798DA3;
  margin-bottom: 20px;
}

.grid-servicios {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(5,1fr);
  grid-gap: 2em;
  justify-content: center;
}

.grid-otrosServicios {
  display: grid;
  justify-items: center;
  grid-template-columns: 1fr;
  grid-gap: 2em;
  justify-content: center;
  margin: 2em;
}

.grid-servicios2 {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(2,1fr);
  grid-gap: 2em;
  justify-content: center;
}

@media screen and (max-width: 976px) {
  .grid-servicios {
  grid-template-columns: repeat(3,1fr);
  grid-gap: 1em;
  }
}

@media screen and (max-width: 574px) {
  .grid-servicios {
  grid-template-columns: repeat(2,1fr);
  grid-gap: 1em;
  }
  .grid-servicios2 {
  grid-template-columns: repeat(1,1fr);
  grid-gap: 1em;
  }
}

.servicio {
  background-color: #ffffff;
  border-radius: 30%;
  width: 160px;
  height: 100%;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: block;
  align-content: space-around;
}

.servicio:hover{
  animation: tada;
  animation-duration: 2s;
}

.servicio img {
  width: 100px;
  height: 100px;
}

.servicio h3 {
  font-size: 20px;
  margin-top: 12px;
  color: #384F72;
}

.servicio .descripcion {
  font-size: 16px;
  color: #798DA3;
  margin-top: 12px;
  display: none;
}

.otrosServicios {
  background-color: #ffffff;
  border-radius: 30%;
  width: 160px;
  height: 100%;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: block;
  align-content: space-around;
}

.otrosServicios:hover{
  animation: tada;
  animation-duration: 2s;
}

.otrosServicios img {
  width: 100px;
  height: 100px;
}

.otrosServicios .ocultarList {
  display: none;
}

.servicio.expandido {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 20px;
}

.otrosServicios.expandido {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.servicio.expandido h3,
.servicio.expandido .descripcion {
  display: block;
}

.otrosServicios.expandido .ocultarList{
    display: block;
    text-align: left;
    line-height: 2em;
}

.servicio2 {
  background-color: #ffffff;
  border-radius: 20%;
  width: 320px;
  height: 100%;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  position: relative;
  text-align: center;
  display: block;
  align-content: space-around;
}

.servicio2:hover{
  animation: bounce;
  animation-duration: 1.5s;
}

.servicio2 img {
  width: 120px;
  height: 120px;
}

.servicio2 h3 {
  font-size: 20px;
  margin-top: 10px;
  color: #384F72;
}

.linea-pers{
  border-bottom: 4px solid #384F72; /* Color azul */
  margin: 10px 0; /* Espacio vertical */
}

.ases{
  font-size: 22px;
  color: #384F72;
  margin-bottom: 30px;
  text-align: left;
  line-height: 2em;
}

/* 🔷 Sección TRÁMITES */
/* Sección general */
.seccion {
  text-align: center;
  padding: 30px 20px;
}

.seccion-asesorias {
  margin-top: 0px;
}

/* Títulos */
.seccion h2 {
  font-size: 40px;
  color: #183b65;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Texto explicativo */
.seccion p {
  font-size: 20px;
  color: #384F72;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Lista de elementos tipo pill */
.lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  max-width: 800px;
  margin: 0 auto;
}

.lista span {
  font-size: 22px;
  color: #FFFFFF;
  background-color: steelblue;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.lista span:hover{
    animation: headShake;
    animation-duration: 2s;
}

/* Responsive para móviles */
@media screen and (max-width: 480px) {
  .seccion h2 {
    font-size: 28px;
  }
    
  .seccion-tramites {
    margin-bottom: 100px;
  }

  .seccion p {
    font-size: 16px;
  }

  .lista span {
    font-size: 14px;
    padding: 5px 12px;
  }

  .seccion-tramites {
    margin-bottom: 80px;
  }
}

/* Video */
.video-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  background-color: #ffffff;
  gap: 40px;
}

.video-contenido {
  flex: 1 1 400px;
  max-width: 600px;
}

.video-contenido h2 {
  font-size: 62px;
  color: #384F72;
  margin-bottom: 20px;
}

.video-contenido p {
  font-size: 18px;
  color: #798DA3;
  margin-bottom: 30px;
  line-height: 1.6;
}

.boton-video {
  display: inline-block;
  background-color: #002b5c;
  color: #ffffff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.boton-video:hover {
  background-color: #ced4dc;
  color: #002b5c;
  cursor: alias;
}

.video-embed {
  flex: 1 1 400px;
  max-width: 600px;
}

@media screen and (max-width: 574px) {
  .video-section {
  padding: 60px 20px;
  }
  .video-contenido h2{
  font-size:52px;	
  }
}

/* Mision y Vision */
.mision-vision {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  padding: 60px 40px;
  background-image: url(assets/ImagenFondo.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}


/* Opcional: capa semitransparente para mejorar legibilidad */
.mision-vision::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.315); /* ajusta opacidad si lo deseas */
  z-index: 0;
}

/* Tarjetas encima del fondo */
.card {
  background-color: #ffffff;
  border-radius: 40px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  padding: 60px 25px;
  max-width: 400px;
  min-height: 420px;
  flex: 1 1 400px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.card:hover{
	animation: pulse;
	animation-duration: 2s;
}

.card .icono img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 28px;
  color: #384F72;
  margin-bottom: 20px;
}

.card p {
  font-size: 17px;
  color: #798DA3;
  line-height: 1.6;
}

/* Contactanos */

.contacto {
  padding: 60px 40px;
  background-color: #f9f9f9;
  text-align: center;
}

.contacto h2 {
  font-size: 62px;
  color: #384F72;
  margin-bottom: 10px;
}

.subtitulo {
  font-size: 18px;
  color: #798DA3;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.formulario-contacto {
  background-color: #f0f4f8;
  padding: 40px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.fila {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 10px;
}

@media screen and (max-width: 574px) {
  .fila{
  gap: 10px;	
  }
}

.campo {
  flex: 1 1 300px;
  text-align: left;
}

.campo label {
  display: block;
  font-weight: bold;
  color: #384F72;
  margin-bottom: 8px;
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
}

.campo textarea {
  resize: vertical;
}

.boton-enviar {
  background-color: #002b5c;
  color: #ffffff;
  margin-top: 32px;
  padding: 14px 32px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton-enviar:hover {
  background-color: lightgreen;
  color: #384F72;
}
	
@media screen and (max-width: 574px) {
  .contacto {
  padding: 60px 20px;
  }
  .contacto h2{
  font-size:52px;	
  }
  .hero-banner{
  background-image: url(assets/Oso3.jpg);
  }
  .pie-institucional{
  background-image: url(assets/Oso.jpg);
  }
}

/* Redes sociales */

.pie-institucional {
  background-image: url(assets/Oso3.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  color: #ffffff;
}

@media screen and (max-width: 574px) {
  .pie-institucional{
  background-image: url(assets/Oso.jpg);
  }
}

/* Capa semitransparente para contraste */
.pie-institucional::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 43, 92, 0.6);
  z-index: 0;
}

.pie-institucional > * {
  position: relative;
  z-index: 1;
}

.columna {
  margin-bottom: 20px;
}

.columna h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ffffff;
}

.columna p,
.columna a {
  font-size: 16px;
  color: #d0d8e0;
  line-height: 1.6;
  text-decoration: none;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.redes img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.redes a:hover img {
  transform: scale(1.8);
}

.pie-final {
  width: 100%;
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #ffffff33;
  padding-top: 20px;
}

.pie-final p {
  font-size: 14px;
  color: #d0d8e0;
  margin-bottom: 8px;
}

.pie-final a {
  font-size: 14px;
  color: #ffffff;
  text-decoration: underline;
}
