/*
Theme Name: portafolio
Theme URI: http://localhost/wordpress/
Author: Renata Añasco
Author URI: http://localhost/wordpress/
Description: Tema personalizado hecho a mano
Version: 1.0
Text Domain: mi-tema
*/

/* ------------------------------
   RESET + BASE
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ------------------------------
   ESPACIADOS UNIFORMES
------------------------------ */

h1, h2, h3 {
  margin-top: 2rem;      /* espacio arriba */
  margin-bottom: 1.5rem; /* espacio abajo */
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Evitar margen superior en primer hijo dentro de container */
.container > h1:first-child,
.container > h2:first-child,
.container > h3:first-child,
.container > p:first-child {
  margin-top: 0;
}

/* Separación vertical entre secciones */
section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Centrado opcional */
.text-center {
  text-align: center;
}

/* Mejor legibilidad en párrafos */
.container p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Listas y blockquotes uniformes */
blockquote, ul, ol {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
  color: #555;
  font-style: italic;
}

/* Imágenes centradas y con sombra */
.container img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ------------------------------
   BOTONES
------------------------------ */
.btn,
.btn-pink {
  background-color: #ff4081;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  display: inline-block;
}

.btn:hover,
.btn-pink:hover {
  background-color: #db2777;
  transform: translateY(-5px);
}

.btn-pink {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  line-height: 45px;
  font-size: 1.5rem;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  padding: 0;
}

/* ------------------------------
   HEADER / NAVIGATION
------------------------------ */
nav#mainNav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #ffffff;
  padding: 20px 40px;
  border-bottom: 2px solid #ccc;
}

nav#mainNav ul.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav#mainNav ul.menu li a {
  color: #008ca0;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s;
}

nav#mainNav ul.menu li a:hover {
  color: #ff3399;
}

.menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: #008ca0;
  cursor: pointer;
  display: none;
  position: absolute;
  right: 40px;
  top: 20px;
  z-index: 1001;
}

/* ------------------------------
   HERO
------------------------------ */
.hero {
  background-color: #0097a7;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero .perfil-img {
  width: 180px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero .texto h1 {
  font-size: 2rem;
}

/* ------------------------------
   FRASE
------------------------------ */
.frase {
  padding: 3rem 1.5rem;
  background-color: #fff;
  color: #0097a7;
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
}

/* ------------------------------
   SOBRE MÍ
------------------------------ */
.about-section {
  background-color: #0097a7;
  color: white;
}

.about-section p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.about-section .perfil-img {
  max-width: 250px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ------------------------------
   ENFOQUE
------------------------------ */
.focus-section img {
  max-width: 100px;
  height: auto;
  margin-bottom: 0.5rem;
}

.focus-section p {
  font-weight: 600;
  color: #444;
}

/* ------------------------------
   HERRAMIENTAS
------------------------------ */
.tools-section {
  background-color: #0097a7;
  color: white;
}

.tool-icon {
  width: 50px;
  height: auto;
  margin: 0 10px;
  transition: transform 0.2s;
}

.tool-icon:hover {
  transform: scale(1.1);
}

/* ------------------------------
   FOOTER
------------------------------ */
.footer-section {
  background-color: #ffffff;
  padding: 3rem 1rem;
  text-align: center;
  color: #008ca0;
}

.footer-section .row {
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-section h5 {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #008ca0;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  text-decoration: underline;
  color: #008ca0;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ff3399;
}

.footer-bottom {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #008ca0;
}

.footer-section .row > div {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-section .row {
    text-align: left;
  }
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav#mainNav {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  nav#mainNav.show {
    display: flex;
  }

  nav#mainNav ul.menu {
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
  }

  .footer-section .row {
    flex-direction: column;
    text-align: center;
  }

  .footer-section .col-md-4 {
    margin-bottom: 2rem;
  }

  .focus-section .row,
  .tools-section .row {
    flex-direction: column;
    gap: 2rem;
  }

  .focus-section .row .col,
  .tools-section .row .col {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .hero .texto {
    max-width: 500px;
    margin-left: 2rem;
  }

  .about-section .container,
  .focus-section .container,
  .tools-section .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* Footer texto a la izquierda */
  .footer-section .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ------------------------------
   TOOLS WRAPPER - ESTILO FLEX HORIZONTAL + ESPACIO VERTICAL
------------------------------ */
.tools-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem; /* 2rem vertical, 3rem horizontal */
}

.tool {
  text-align: center;
}

.tool img {
  width: 60px;
  height: auto;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease;
}

.tool img:hover {
  transform: scale(1.1);
}

.footer-section .row > div {
  margin-bottom: 1.5rem;
}

.footer-section .col-md-4.d-flex {
  justify-content: center;
  align-items: center;
}

.footer-section ul {
  padding-left: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  text-decoration: underline;
  color: #008ca0;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ff3399;
}

.footer-section {
  margin-top: 3rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1200px) {
  .footer-section {
    padding-left: 8rem;
    padding-right: 8rem;
  }
}

.footer-section > .container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

/*----------------------------------------------------Propuesta de Valor*------------------------------------------------------*/

.section {
  padding: 3rem 0;
}

.h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.bg-info {
  background-color: #008ca0 !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.text-white {
  color: #fff !important;
}

.breadcrumb a {
  color: #008ca0;
  font-weight: 600;
}

.breadcrumb-item.active {
  color: #ff3399;
  text-decoration: underline;
  text-underline-offset: 4px;
}

i.bi {
  color: white;
}

ul.list-unstyled li {
  font-size: 1.2rem;
  font-weight: 500;
}

ul.list-unstyled i {
  font-size: 1.2rem;
  vertical-align: middle;
}

/* Imágenes con estilo */
img.img-fluid {
  border-radius: 10px;

}

/* Responsive ajustes */
@media (max-width: 768px) {
  .text-md-start {
    text-align: center !important;
  }
}

.diferenciadores-section .bi {
  color: #ffffff !important;
}

.titulo-azul {
  color: #008ca0 !important;
}

/*-----------------------------------Sección proyectos*---------------------------------------------------------------------*/

/* Sección Proyectos */
.proyectos-section {
  background-color: #008ca0;
}

/* Breadcrumb */
.custom-breadcrumb {
  margin-bottom: 0;
  background: none;
  font-weight: 500;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #999;
}

.custom-breadcrumb a {
  color: #008ca0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.custom-breadcrumb .active {
  color: #ff3399;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Botón Ver más */
.btn-vermas {
  background-color: #ff3399;
  color: #fff;
  font-weight: bold;
  border-radius: 10px;
  padding: 0.6rem;
  transition: background-color 0.3s ease;
}

.btn-vermas:hover {
  background-color: #e62e82;
}

/* Card */
.card-text {
  color: #ffffff;
}

/*----------------------------------------------------Sección Contacto*------------------------------------------------------------*/

/* Sección Contacto */
.contacto-section {
  background-color: #008ca0;
}

.contacto-section h2,
.contacto-section p,
.contacto-section label {
  color: #ffffff;
}

/* Breadcrumb */
.custom-breadcrumb {
  background: none;
  font-weight: 500;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #999;
}

.custom-breadcrumb a {
  color: #008ca0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.custom-breadcrumb .active {
  color: #ff3399;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Formulario */
.contact-form input,
.contact-form textarea {
  border-radius: 10px;
  border: none;
  padding: 0.75rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 51, 153, 0.3);
  border: 2px solid #ff3399;
}

/* Botón enviar */
.btn-enviar {
  background-color: #ff3399;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  padding: 0.6rem 2rem;
  transition: background-color 0.3s ease;
}

.btn-enviar:hover {
  background-color: #e62e82;
  border-radius: 10px;
}

/*-----------------------------------------Sección Buenas Practicas----------------------------------------------------------*/


/* Fondo para sección principal */
.buenas-practicas-section {
  background-color: #008ca0;
  color: #fff;
}

/* Título principal */
.buenas-practicas-section h2 {
  font-weight: bold;
  color: #fff;
}

/* Párrafos */
.buenas-practicas-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #fff;
}

/* Breadcrumb personalizado */
.custom-breadcrumb {
  background-color: transparent;
  margin-bottom: 0;
}

.custom-breadcrumb .breadcrumb-item a {
  color: #008ca0;
  text-decoration: none;
}

.custom-breadcrumb .breadcrumb-item.active {
  color: #ff3399;
  text-decoration: underline;
}

/* Responsive imagen */
.buenas-practicas-section img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/*--------------------------------------------------------Sección Proyectos UX/UI*-----------------------------------------------------*/

/* === ESTILOS PARA Proyectos UX/UI === */
.bg-aqua {
  background-color: #008ca0;
}

.bg-pink {
  background-color: #ff3399;
}

.text-aqua {
  color: #008ca0;
}

.text-white {
  color: #ffffff;
}

.breadcrumb.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #ff3399;
}

.breadcrumb.custom-breadcrumb .breadcrumb-item a {
  text-decoration: none;
  color: #008ca0;
}

.breadcrumb.custom-breadcrumb .breadcrumb-item.active {
  text-decoration: underline;
  text-decoration-color: #ff3399;
}

.proyecto-card h5,
.proyecto-card p {
  margin-bottom: 0.5rem;
}

.proyecto-card img {
  max-height: 200px;
  object-fit: cover;
}

/*---------------------------------------------------Sección Proyectos HTML/CSS*-------------------------------------------------------------------*/

.text-aqua {
  color: #008ca0;
}

ul {
  padding-left: 1.2rem;
  list-style: disc;
}

section.proyectos-html-css h4 {
  margin-bottom: 1rem;
}

/*----------------------------------Sección accesibilidad*------------------------------------------------------------------------------------------*/

.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}
.high-contrast a {
  color: #0ff !important;
  text-decoration: underline;
}
html {
  font-size: 16px;
}
#accessibility-controls button {
  margin: 0 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 768px) {
  nav#mainNav.show {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
}
