/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  --first-color: #112A4A ;
  --first-color-shape: #efb71063 ;
  --title-color: hsl(273, 8%, 15%);
  --text-color: hsl(273, 4%, 45%);
  --body-color: hsl(273, 100%, 99%);
  --container-color: #fff;
  --title-color-dark: hsl(273, 83%, 98%);
  --text-color-dark: #efb71060;
  --container-color-dark: #112A4A ;
  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --big-font-size: 1.5rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  /*========== z index ==========*/
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 2rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  overflow-x: hidden;
}

h1, h2, h3 {
  color: var(--title-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.section {
  padding: 4.5rem 0 1rem;
}

.section__height {
  height: 100vh;
}

/*=============== HEADER Y NAV ===============*/
.nav {
  background-color: var(--container-color-dark);
  padding-top: 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 998;
  overflow-y: auto;
}

.nav__shape {
  width: 200px;
  height: 200px;
  background-color: var(--first-color-shape);
  border-radius: 50%;
  position: absolute;
  top: -2rem;
  left: -2rem;
  filter: blur(90px);
}

.nav__close {
  position: relative;
  display: inline-flex;
  font-size: 1.8rem;
  color: var(--text-color-dark);
  cursor: pointer;
  margin-bottom: 3.5rem;
}

.nav__img {
  width: 120px;
}

.nav__mask {
  width: 120px;
  height: 120px;
  background: transparent;
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.nav__data {
  position: relative;
  margin-bottom: 3rem;
}

.nav__greeting {
  display: block;
  color: var(--text-color-dark);
  font-size: var(--small-font-size);
  font-weight: 500;
  margin-bottom: .25rem;
}

.nav__name {
  color: var(--title-color-dark);
  font-size: var(--big-font-size);
  line-height: 130%;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.nav__link {
  color: var(--text-color-dark);
  display: inline-flex;
  align-items: center;
  column-gap: 1rem;
  font-size: var(--small-font-size);
  font-weight: 500;
  transition: .3s;
}

.nav__link i {
  font-size: 1.15rem;
}

.nav__link:hover {
  color: var(--title-color-dark);
}

.main {
  position: relative;
  background-color: var(--body-color);
  transition: .4s;
  z-index: 999;
}

.header {
  width: 100%;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

.header__nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo, .header__toggle {
  color: var(--title-color);
}

.header__logo {
  width: 120px;
}

.header__toggle {
  font-size: 2rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  transform: translate(70%);
}

/* Change background header */
.scroll-header {
  /* box-shadow: 0 1px 4px rgba(40, 37, 37, 0.1); */
  background-color: var(--container-color);
}

/* Active link */
.active-link {
  color: var(--title-color-dark);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 767px) {
  .show-menu {
    transform: translate(40%);
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .section {
    padding: 7rem 0 2rem;
  }
  .header__nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__shape {
    width: 350px;
    height: 350px;
  }
  .nav__mask {
    width: 100px;
    height: 100px;
    border-radius: 2rem;
    margin-bottom: 2rem;
  }
  .nav__img {
    width: 90px;
  }
  .nav__link {
    font-size: var(--normal-font-size);
  }
  .nav__link i {
    font-size: 1.25rem;
  }
}




/*=============== INICIO ===============*/


.background{
  background: url(../img/bg.avif) no-repeat center center/cover;
  min-height: 100vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(3px);
}

#inicio{
  
  height: 100vh;
  width: 100%;
}
.inicio{
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}


.inicio .content{
  color: #fff;
  width: 70%;
  margin-top: 50px;
    
}

.inicio .content h1{
  color: #fff;
  font-size: 4em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 75px;
  margin-bottom: 40px;
}

.inicio .content p{
  margin-bottom: 65px;
}

.inicio .content a{
  background: var(--first-color-shape);
  padding: 15px 35px;
  color: #fff;
  font-size: 1.1em;
  font-weight: 500;
  border-radius: 2px;
}



/* ===========SOBRE NOSOTROS ==========  */

.about-us{
  display: grid;
  grid-template-columns: repeat(1,1fr);
  gap: 4rem;
}


.grid-au{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2rem;
} 


.au-img img{
  max-width: 100%;
  width: 560px;
  height: auto;
}

.au-text {
  text-align: center;
  place-content: center;
  flex-direction: column;
  justify-content: center;
  background-color: var(--first-color-shape);
}

.text{
  padding: 6% 0;
  margin-left: 1rem;
}

.text h2{
  color: var(--container-color-dark);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.text h3{
  font-size: 36px;
  text-transform: capitalize;
  font-weight: 700;
  line-height: 46px;
  margin-bottom: 30px;
}



/*aber keonda */

/*=============== CONTENT STYLES ===============*/
.section__title {
  font-size: 2.5rem;
  color: #112A4A#112A4A;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 4rem;
}

.section__subtitle {
  font-size: 1.5rem;
  color: var(--title-color);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.section__subtitle--center {
  font-size: 1.2rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section__text {
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

.services__grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.service__card {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service__card:hover {
  transform: translateY(-5px);
}

.service__icon {
  font-size: 2rem;
  color: var(--container-color-dark);
  margin-bottom: 1rem;
}

.service__title {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-bottom: 1rem;
}

.service__description {
  color: var(--text-color);
  line-height: 1.5;
}

.highlight__box {
  background: linear-gradient(135deg, var(--container-color-dark), #1a3a5c);
  color: var(--text-color-dark);
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
}

.highlight__title {
  color: var(--title-color-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact__info {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-top: 2rem;
}

.practice__tabs {
  background: var(--container-color-dark);
  margin: 3rem 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tab__nav {
  display: flex;
  flex-wrap: wrap;
}

.tab__button {
  background: none;
  border: none;
  color: white;
  padding: 1.2rem 2rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  flex: 1;
  min-width: 200px;
  font-family: var(--body-font);
  font-size: var(--small-font-size);
}

.tab__button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tab__button--active {
  background: var(--container-color);
  color: var(--container-color-dark);
}

.tab__content {
  display: none;
  padding: 3rem;
  background: var(--container-color);
}

.tab__content--active {
  display: block;
}

.content__grid {
  display: grid;
  
  gap: 3rem;
  margin-top: 2rem;
}

.main__content {
  /* Inherits existing styles */
}

.content__subtitle {
  font-size: 1.5rem;
  color: var(--container-color-dark);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.content__subheading {
  font-size: 1.2rem;
  color: var(--title-color);
  margin: 1.5rem 0 0.8rem 0;
  font-weight: 600;
}

.content__sidebar {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 1rem;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.sidebar__title {
  color: var(--container-color-dark);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.sidebar__title--spaced {
  margin-top: 2rem;
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  background: var(--container-color);
}

.contact__card:hover {
  background: #e9ecef;
}

.contact__avatar {
  width: 50px;
  height: 50px;
  background: var(--container-color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

.contact__info h4 {
  color: var(--title-color);
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.contact__info span {
  color: var(--text-color);
  font-size: 0.85rem;
}

.quote__box {
  background: #f8f9fa;
  border-left: 4px solid var(--container-color-dark);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--text-color);
}

.quote__author {
  text-align: right;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--container-color-dark);
  font-style: normal;
}

.services__list {
  background: var(--container-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.services__list-title {
  color: var(--container-color-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.services__list-items {
  list-style: none;
  padding: 0;
}

.services__list-items li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
}

.services__list-items li:last-child {
  border-bottom: none;
}

.services__list-items li i {
  color: var(--container-color-dark);
  font-size: 1rem;
}

.recognition__box {
  background: var(--container-color);
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-color);
}

.recognition__source {
  text-align: right;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--container-color-dark);
  font-style: normal;
  font-size: 0.8rem;
}

.stats__list {
  /* Inherits from services__list but with different styling */
}

.stat__item {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-size: 0.9rem;
}

.stat__item:last-child {
  border-bottom: none;
}

.stat__item i {
  color: var(--container-color-dark);
  font-size: 1rem;
}

/*=============== BREAKPOINTS ===============*/
/* Extra small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .inicio .content h1 {
    font-size: 1.5em;
    letter-spacing: 1px;
    line-height: 35px;
  }

  .inicio .content p {
    font-size: 0.85rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .text h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .header__logo {
    width: 60px;
  }

  .header__img {
    max-width: 60px;
  }

  .nav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .nav__menu {
    padding: 0.75rem;
  }

  .nav__close {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .nav__data {
    margin-bottom: 1rem;
  }

  .nav__img {
    width: 50px;
  }

  .nav__mask {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
  }

  .nav__list {
    row-gap: 0.75rem;
  }

  .nav__link {
    font-size: 0.8rem;
    padding: 0.4rem 0;
  }

  .nav__link i {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 768px) {
  .show-menu .main {
    transform: translateX(40%);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .content__grid {
    grid-template-columns: 1fr;
  }

  .tab__nav {
    flex-direction: column;
  }

  .tab__button {
    min-width: auto;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }

  .content__sidebar {
    position: static;
  }

  /* Fix section heights for mobile */
  .section__height {
    min-height: auto;
    height: auto;
  }

  #inicio {
    min-height: 100vh;
    height: auto;
    padding-bottom: 2rem;
  }

  .inicio {
    min-height: 100vh;
    height: auto;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 2rem;
  }

  /* Inicio section mobile */
  .inicio .content {
    width: 90%;
    margin-top: 30px;
    padding: 0 1rem;
  }

  .inicio .content h1 {
    font-size: 2em;
    letter-spacing: 2px;
    line-height: 45px;
    margin-bottom: 20px;
  }

  .inicio .content p {
    font-size: 0.9rem;
    margin-bottom: 30px;
    line-height: 1.6;
  }

  .inicio .content a {
    padding: 12px 25px;
    font-size: 0.95em;
  }

  /* About Us section mobile */
  .about-us {
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 2rem;
  }

  .grid-au {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .au-img {
    width: 100%;
    max-height: 40vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .au-img img {
    width: 100%;
    max-width: 100%;
    max-height: 40vh;
    height: auto;
    object-fit: cover;
  }

  .text {
    padding: 3% 0;
    margin-left: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .text h2 {
    font-size: 14px;
  }

  .text h3 {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 20px;
  }

  .text p,
  .text li {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Section titles mobile */
  .section__title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .section__subtitle--center {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Tab content mobile */
  .tab__content {
    padding: 2rem 1.5rem;
  }

  .section__text {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .content__subtitle {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
  }

  .content__subheading {
    font-size: 1.1rem;
    margin: 1.2rem 0 0.6rem 0;
  }

  .services__list {
    padding: 1.2rem;
    margin: 1.2rem 0;
  }

  .services__list-title {
    font-size: 1rem;
  }

  .services__list-items li {
    font-size: 0.85rem;
    padding: 0.4rem 0;
  }

  /* Container padding mobile */
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .section {
    padding: 3rem 0 2rem;
    min-height: auto;
  }

  /* Practice tabs section */
  #servicios {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .practice__tabs {
    margin: 2rem 0;
  }

  /* Ensure all sections have proper spacing */
  #portfolio,
  #skills,
  #contact {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* Remove fixed heights that cause overlap */
  #portfolio.section__height,
  #skills.section__height,
  #contact.section__height {
    min-height: auto;
    height: auto;
  }

  /* Header and logo adjustments */
  .header__logo {
    width: 80px;
  }

  .header__img {
    width: 100%;
    height: auto;
    max-width: 80px;
  }

  /* Nav adjustments */
  .nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .nav__menu {
    padding: 1rem;
  }

  .nav__close {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .nav__data {
    margin-bottom: 1.5rem;
  }

  .nav__img {
    width: 70px;
  }

  .nav__mask {
    width: 70px;
    height: 70px;
    margin-bottom: 0.5rem;
  }

  .nav__list {
    row-gap: 1rem;
  }

  .nav__link {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }

  .nav__link i {
    font-size: 1rem;
  }
}

/* Tablet styles */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  .show-menu .main {
    transform: translateX(40%);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inicio .content {
    width: 75%;
  }

  .inicio .content h1 {
    font-size: 3em;
    letter-spacing: 3px;
    line-height: 60px;
  }

  .grid-au {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .au-img img {
    width: 100%;
    max-width: 100%;
  }

  .section__title {
    font-size: 2.2rem;
  }
}

@media screen and (min-width: 767px) {
  .show-menu .main {
    transform: translateX(40%);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 7rem 0 2rem;
  }

  .header__nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__shape {
    width: 350px;
    height: 350px;
  }

  .nav__mask {
    width: 100px;
    height: 100px;
    border-radius: 2rem;
    margin-bottom: 2rem;
  }

  .nav__img {
    width: 90px;
    height: 90px;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

  .nav__link i {
    font-size: 1.25rem;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--container-color-dark);
  color: var(--text-color-dark);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  position: relative;
  width: 100%;
  clear: both;
}

.footer__container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer__img {
  width: 120px;
  height: auto;
}

.footer__contact {
  text-align: center;
  width: 100%;
}

.footer__title {
  color: var(--title-color-dark);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-dark);
  font-size: var(--normal-font-size);
  transition: .3s;
  text-decoration: none;
}

.footer__link:hover {
  color: var(--title-color-dark);
  transform: translateY(-3px);
}

.footer__link i {
  font-size: 2.5rem;
  transition: .3s;
}

.footer__link:hover i {
  transform: scale(1.1);
}

.footer__link span {
  font-size: var(--small-font-size);
  font-weight: 500;
}

.footer__copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.footer__copyright p {
  font-size: 0.75rem;
  color: var(--text-color-dark);
  opacity: 0.7;
  margin: 0;
}

/* Footer responsive */
@media screen and (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem;
    margin-top: 2rem;
  }

  .footer__content {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer__img {
    width: 100px;
  }

  .footer__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .footer__social {
    gap: 1.5rem;
  }

  .footer__link i {
    font-size: 2rem;
  }

  .footer__link span {
    font-size: 0.8rem;
  }

  .footer__copyright {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }

  .footer__copyright p {
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 320px) {
  .footer__img {
    width: 80px;
  }

  .footer__title {
    font-size: 1rem;
  }

  .footer__social {
    gap: 1rem;
  }

  .footer__link i {
    font-size: 1.8rem;
  }
}
