/**
* Template Name: iPortfolio
* Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
* Updated: Jun 29 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #272829; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #050d18; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #b1093d; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #a8a9b4;  /* The default color of the main navmenu links */
  --nav-hover-color: #ffffff; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #040b14; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #040b14; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #a8a9b4; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #ffffff; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f4fafd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #151f2b;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.btn-icon.active i {
  transform: scale(1.1);
}
.btn-icon {
  background:#b1093d;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  font-size: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  
}


.btn-icon:hover {
  background: #f5bbcd;
  color: #b1093d;
}

.info-card {
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  font-size: 1rem;
}


/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .social-links {
  margin: 0 0 20px 0;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

@media (min-width: 1200px) {

  .header~main,
  .header~#footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
#navmenu a.active{
  color: #0d6efd; /* azul bootstrap */
  font-weight: 600;
}


.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: --nav-dropdown-color;
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown>.dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 4px;
  font-size: 13px;
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 30px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/

.hero h2 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 24px;
}

#hero{
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Fondo oscuro que cubre toda la pantalla */
.hero-bg{
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left, rgba(255,255,255,0.06), transparent 55%),
              linear-gradient(120deg, #0b0f1a, #06070d);
  z-index: 1;
}

/* Contenido encima del fondo */
.hero-content{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-left: 2rem;
}

/* Texto */
.hero-text{
  max-width: 520px;
}

.hero-text h2{
  color: #fff;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.hero-text p{
  color: rgba(255,255,255,0.85);
  font-size: clamp(1.5rem, 1.6vw, 1.3rem);
}

/* Foto al lado (siempre visible) */
.hero-photo{
  flex: 0 0 auto;
  width: min(420px, 40vw);
  
  margin-right: 2rem;
}

.hero-photo img{
  width: 100%;
  height: auto;
  object-fit: contain; /* clave: NO se recorta */
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* Responsive: cuando se hace pequeño, la foto baja pero se sigue viendo completa */
@media (max-width: 992px){
  .hero-content{
    flex-direction: column;
    text-align: center;
  }

  .hero-photo{
    width: min(420px, 85vw);
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

.about  {
  margin: 2.5rem ;
}

.contacto {
  margin-top: 1rem ;
  margin-bottom: 1rem;
  font-weight: bold;
}


/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 44px;
  float: left;
  line-height: 0;
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  margin-left: 60px;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: var(--heading-font);
  font-size: 14px;
}
/*--------------------------------------------------------------
# Habilidades

/* Fondo suave para que las cards resalten */
.skills .section-title{
  margin: 2.5rem ;
}
.skills .row{
  margin-left: 2.5rem ;
  margin-right: 2.5rem ;
}
.skill-item{
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.skill-name{
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #333;
  opacity: 0;
  transform: translateY(-6px);
  transition: 0.2s ease;
}

.skill-item:hover .skill-name{
  opacity: 1;
  transform: translateY(0);
}

.light-background {
  background: #f7f9fc;
}


/* Cards más pro */
.skill-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Hover elegante */
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.10);
}

/* Header limpio */
.skill-card .card-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 16px;
}

/* Cuerpo con más aire */
.skill-card .card-body {
  padding: 22px;
}

/* Contenedor de iconos (alineación perfecta) */
.skills-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Iconos iguales (esto lo hace ver ordenado) */
.skill-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover en iconos */
.skill-icon:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15));
}
.section-title h5 {
  font-weight: 800;
  letter-spacing: -0.5px;
}
/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume {
  margin-left: 2.5rem ;
  margin-right: 2.5rem ;
}
.resume .container {
  margin-top: 1rem ;
  margin-bottom: 1rem ;
}

.resume-block{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  height: 100%;
}

.resume-title{
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resume-title i{
  font-size: 1.4rem;
  opacity: 0.9;
  color: #b1093d;
}

.resume-item{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 14px;
  margin-bottom: 12px;
  transition: 0.2s ease;
}

.resume-item:hover{
  transform: translateY(-3px);
}

.resume-date{
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.75;
  margin-bottom: 6px;
}

.resume-item h4{
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.resume-place{
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 4px;
}

.resume-desc{
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0;
}

.resume-list{
  margin: 8px 0 0 18px;
  opacity: 0.9;
  font-size: 0.95rem;
}


.ResumeCont {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.ResumeCont:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.10);
}
.resume .resume-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

/* Cambia el color del accordion cuando está abierto (active) */
.accordion-button:not(.collapsed) {
  background-color: #f5bbcd;  
  color: #ff2d55;
  box-shadow: none;           
}

/* Quita el borde azul cuando haces click (focus) */
.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.reco-card{
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.reco-card:hover{
  transform: scale(1.02);
}

.reco-card img{
  height: 180px;
  object-fit: cover;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.proyects-title {
  margin-left: 2.5rem ;
  margin-right: 2.5rem ;
}

.proyects-title p {
  margin-right: 2.5rem ;
}
.container .proyects {
  margin-left: 2.5rem ;
  margin-right: 2.5rem ;
}
.card-proy{
  margin-top: 1rem;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  margin-left: 2.5rem;
  margin-right: 2.5rem;
}

.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border-radius: 16px; /* ✅ extra: más elegante */
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  border-radius: 16px; /* ✅ extra: más elegante */
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

/* ✅ Inputs redondeados + borde suave */
.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 12px 16px; /* un poquito más cómodo */
  box-shadow: none;
  border-radius: 14px; /* ✅ aquí lo redondeado */
  color: var(--default-color);
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  transition: 0.25s ease;
}

/* ✅ Focus rosa bonito */
.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: #b1093d;
  box-shadow: 0 0 0 4px rgba(177, 9, 61, 0.12);
  outline: none;
}

/* ✅ Placeholder rosa suave */
.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: rgba(177, 9, 61, 0.55);
}

/* ✅ Textarea más bonita */
.contact .php-email-form textarea {
  resize: none;
  border-radius: 16px;
}

/* Botón igual pero más acorde */
.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: #b1093d;
  border: 0;
  padding: 12px 30px;
  transition: 0.3s ease;
  border-radius: 50px;
  font-weight: 600;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, #b1093d, transparent 15%);
  transform: translateY(-1px);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
/* ====== MODAL PROYECTOS ====== */
/* Cards más pro */
.card-proy {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Hover elegante */
.card-proy:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.10);
}

/* Header limpio */
.card-proy .card-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 16px;
}

/* Cuerpo con más aire */
.card-proy .card-body {
  padding: 22px;
}

.modal-content.bg-dark{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  overflow: hidden; /* para que el carrusel no se salga */
}

/* Header */
.modal-header{
  padding: 18px 22px;
}

.modal-title{
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .3px;
  margin: 0;
}

/* ====== DESCRIPCIÓN DEL PROYECTO ====== */
.project-description{
  padding: 22px 22px 26px 22px;
  color: rgba(255,255,255,0.88);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Títulos */
.project-description h3{
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.project-description h4{
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.95);
  position: relative;
  padding-left: 12px;
}

/* Línea decorativa en h4 */
.project-description h4::before{
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.35);
}

/* Párrafos */
.project-description p{
  margin-bottom: 12px;
  color: rgba(255,255,255,0.85);
}

/* Listas */
.project-description ul{
  margin: 0;
  padding-left: 1.2rem;
}

.project-description li{
  margin-bottom: 10px;
  color: rgba(255,255,255,0.85);
}

/* Negritas */
.project-description strong{
  color: #fff;
  font-weight: 700;
}

/* Código tipo etiqueta */
.project-description code{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.92em;
  color: rgba(255,255,255,0.95);
}

/* Separación visual entre carrusel y texto */
.carousel{
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Mejorar controles del carrusel en fondo oscuro */
.carousel-control-prev-icon,
.carousel-control-next-icon{
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.8));
}

/* Indicadores del carrusel */
.carousel-indicators [data-bs-target]{
  background-color: rgba(255,255,255,0.65);
}

.carousel-indicators .active{
  background-color: #fff;
}

/* Responsive */
@media (max-width: 576px){
  .project-description{
    padding: 18px 16px 22px 16px;
    font-size: 0.95rem;
  }

  .project-description h3{
    font-size: 1.1rem;
  }

  .project-description h4{
    font-size: 1rem;
  }
}

