/*
Theme Name: Portafolio Coni Theme
Author: Constanza Fuentes
Description: Mi tema para Portafolio 2025
Version: 1.1 (Refactored)
Text Domain: portafolio-coni
*/

/* --- Variables y Estilos Base --- */
:root {
    --primary-text-color: #5d5449; /* Marrón oscuro principal */
    --secondary-text-color: #7a7064; /* Marrón más claro */
    --accent-color-pink: #e88c8d;
    --accent-color-pink-darker: #e17576; /* Pre-calculated darker pink for hover states */
    --accent-color-green: #a3b89b;
    --accent-color-green-darker: #92a78b; /* Pre-calculated darker green for hover states */
    --hero-bg-color: rgba(253, 250, 245, 0.95);
    --frame-background-color: #f4ede4;
    --frame-border-color: #c4b8a8;
    --background-color-light: #fff;
    
    /* Fuentes */
    --font-script: 'Dancing Script', cursive; 
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Tamaños y Layout */
    --border-radius-soft: 10px;
    --border-radius-main: 30px;
    --header-height: 70px;
   
    /* Pesos de Fuente */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --font-weight-extra-bold: 900;
    
    /* Sombras */
    --box-shadow-light: 0 2px 8px rgba(0,0,0,0.08);
    --box-shadow-md: 0 4px 15px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-image: url('img/papelmuralfondo.png');
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    font-family: var(--font-body);
    color: var(--primary-text-color);
    line-height: 1.6;
    font-size: 16px; 
}

/* Evita que la página haga scroll cuando el menú móvil está abierto */
body.no-scroll {
    overflow: hidden;
}

.page-wrapper {
    max-width: 1280px;
    margin: 2.5rem auto;
    padding: 1.5rem;
    background-color: var(--hero-bg-color);
    border-radius: var(--border-radius-main);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.container {
    width: 95%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-color-pink);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
}

.handwritten-font {
    font-family: var(--font-script);
    font-weight: normal;
    font-style: normal;
}

/* --- Botones Genéricos --- */
.btn {
    display: inline-block;
    padding: 0.75em 1.5em;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius-soft);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    text-transform: capitalize;
}
.btn--large {
    padding: 0.9em 2.5em;
    font-size: 1.1rem;
}
.btn--secondary-accent {
    background-color: var(--accent-color-pink);
    color: white;
    border-color: var(--accent-color-pink);
    font-weight: 700;
}
.btn--secondary-accent:hover,
.btn--secondary-accent:focus {
    background-color: var(--accent-color-pink-darker);
    border-color: var(--accent-color-pink-darker);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #1DA851;
    border-color: #1DA851;
    color: white;
}
.btn-whatsapp i {
    margin-right: 0.75em;
    font-size: 1.2em;
    vertical-align: middle;
}

/* --- Títulos de Sección Genéricos --- */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--primary-text-color);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title--centered {
    text-align: center;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color-pink);
    border-radius: 2px;
}
.section-title--centered::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --- Header y Navegación --- */
.site-header {
    background-color: rgba(253, 250, 245, 0.85);
    backdrop-filter: blur(5px);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding .site-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-text-color);
    font-weight: bold;
}
.site-branding .site-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-text-color);
}
.main-navigation__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem; /* Espacio entre items */
}
.main-navigation__link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    padding-bottom: 0.3rem;
    position: relative;
}
.main-navigation__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-color-pink);
    transition: width 0.3s ease;
}
.main-navigation__link:hover,
.main-navigation__link:focus,
.current-menu-item > .main-navigation__link {
    color: var(--accent-color-pink);
}
.main-navigation__link:hover::after,
.main-navigation__link:focus::after,
.current-menu-item > .main-navigation__link::after {
    width: 100%;
}
.header-social-icons {
    display: flex;
    align-items: center;
}
.header-social-icons a {
    margin-left: 1rem;
    font-size: 1.2rem;
}

/* --- Menú Móvil (Hamburguesa) --- */
.menu-toggle {
    display: none; /* Oculto en desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010;
    order: 3;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-text-color);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* --- Hero Section --- */
.hero-section { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
    min-height: calc(85vh - var(--header-height) - 5rem); 
}
.hero-decorative-image {
    display: block;           
    margin-left: auto;        
    margin-right: auto;       
    transform: translateY(-60px); 
    max-width: 80%; 
    width: 300px;
    height: auto;             
    border-radius: 10px;
}
.hero-lead-text-portfolio {
    font-family: var(--font-body); 
    font-weight: var(--font-weight-light);
    font-style: italic; 
    font-size: clamp(2rem, 6vw, 3.2rem);
    color: var(--accent-color-pink);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.hero-main-title-portfolio {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6.5rem);
    color: var(--primary-text-color);
    letter-spacing: -1.5px;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-extra-bold);
    padding: 0 0.5rem;
}
.hero-sub-text-portfolio {
    font-family: var(--font-body); 
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* --- Flecha Scroll Down --- */
.scroll-down-arrow {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--accent-color-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    animation: bounce 2s infinite ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
}
.scroll-down-arrow:hover {
    background-color: #8da88b; /* Verde más oscuro */
    animation-play-state: paused;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Sección Sobre Mí --- */
.about-me-section {
    padding: 3rem 0;
}
.about-me-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}
.about-me__visuals {
    flex: 0 0 40%;
    max-width: 400px;
    position: relative;
    margin-right: 2rem;
}
.about-me__illustration-wrapper {
    position: relative;
    z-index: 5;
}
.about-me__illustration {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}
.about-me__photo-wrapper {
    background-color: white;
    padding: 15px 15px 45px 15px;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: rotate(-3deg);
    margin-top: -80px;
    margin-left: 20px;
    position: relative;
    z-index: 10;
    width: 80%;
}
.about-me__photo {
    width: 100%;
    border: 1px solid #eee;
}
.photo-caption {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--secondary-text-color);
}
.tape-graphic, .floral-element {
    position: absolute;
    z-index: 15;
    pointer-events: none;
}
.tape-graphic--photo-top {
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(3deg);
    width: 80px;
}
.floral-element--bottom {
    bottom: -40px;
    right: -30px;
    width: 120px;
    transform: rotate(10deg);
}
.about-me__text-content {
    flex: 1;
}
.about-me__greeting {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--primary-text-color);
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-extra-bold);
}
.about-me__greeting .handwritten-font {
    font-family: var(--font-script);
    color: var(--accent-color-pink);
    font-size: 1.1em;
    font-weight: normal;
    display: inline-block;
}
.about-me__intro {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.about-me__text-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--secondary-text-color);
}
.about-me__text-content .text-link {
    font-weight: bold;
    color: var(--accent-color-pink);
    text-decoration: none;
    text-underline-offset: 3px;
}
.about-me__text-content .text-link:hover {
    color: var(--accent-color-pink-darker);
}
.about-me__services-list {
    font-size: 0.95rem;
    font-style: italic;
}
.about-me__services-list strong {
    font-style: normal;
    color: var(--primary-text-color);
}

/* --- Grilla de Portafolio (Genérica) --- */
.portfolio-grid-section { /* Wrapper para la sección */
    padding: 4rem 0;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem 2rem;
}
.portfolio-item {
    text-align: center;
}
.portfolio-item__link {
    display: block;
    color: var(--secondary-text-color);
    transition: transform 0.3s ease;
}
.portfolio-item__link:hover {
    transform: translateY(-5px);
}
.portfolio-item__link:hover .portfolio-item__label {
    color: var(--accent-color-pink);
}
.portfolio-item__visuals {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 1.5rem;
    background-color: var(--frame-background-color);
    border-radius: 15px;
}
.portfolio-item__desktop-frame {
    position: absolute;
    top: 5%; left: 5%; width: 90%; height: 90%;
    border: 1.5px solid var(--frame-border-color);
    border-radius: 15px;
    padding-top: 20px;
}
.desktop-dots {
    position: absolute; top: 8px; left: 12px; display: flex;
}
.desktop-dots i {
    width: 8px; height: 8px; background-color: var(--frame-border-color);
    border-radius: 50%; margin-right: 5px;
}
.portfolio-item__mobile-frame {
    position: absolute; bottom: 10%; right: 5%;
    width: 35%; height: 55%;
    background-color: var(--frame-background-color);
    border: 1.5px solid var(--frame-border-color);
    border-radius: var(--border-radius-soft);
    display: flex; justify-content: center; align-items: flex-end;
    padding-bottom: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}
.mobile-dot i {
    width: 7px; height: 7px; background-color: var(--frame-border-color); border-radius: 50%;
}
.portfolio-item__floral-image {
    position: absolute;
    top: 15%; left: 15%; width: auto; max-width: 70%; max-height: 70%;
    object-fit: contain; z-index: 10; pointer-events: none;
}
.portfolio-item__label {
    font-size: 1rem;
    color: var(--secondary-text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* --- Sección de Servicios (Página de Inicio/Servicios) --- */
.my-services-section {
    padding: 4rem 0;
}
.services-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-text-color);
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
    text-align: center;
}
/* Servicio Destacado */
.service-item--featured {
    display: flex;
    flex-direction: column; /* Móvil primero */
    background-color: var(--frame-background-color);
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow-md);
    border-radius: var(--border-radius-main);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item--featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.service-item--featured .service-item__image-wrapper {
    width: 100%;
    height: 280px;
}
.service-item--featured .service-item__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-item--featured .service-item__content {
    padding: 2.5rem 3rem;
    text-align: left;
}
.service-item--featured .service-item__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-text-color);
}
.service-item--featured .service-item__title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 0.75rem;
}
.service-item--featured .service-item__description {
    font-size: 1rem;
    color: var(--secondary-text-color);
    margin-bottom: 1.5rem;
}
.service-item--featured .service-item__cta-link {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    transition: color 0.3s ease, transform 0.3s ease;
}
.service-item--featured .service-item__cta-link:hover {
    color: var(--accent-color-pink);
    transform: translateX(5px);
}
/* Grid Servicios Secundarios */
.services-secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.service-item { /* Estilo para los items secundarios */
    background-color: var(--background-color-light);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}
.service-item__image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.service-item__content {
    padding: 1.5rem 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-item__number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color-green);
    margin-bottom: 0.25rem;
}
.service-item__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.service-item__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--secondary-text-color);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.service-item__cta-link {
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    transition: color 0.3s ease, transform 0.3s ease;
}
.service-item__cta-link:hover {
    color: var(--accent-color-pink);
    transform: translateX(3px);
}

/* --- Sección Mi Proceso --- */
.process-section {
    padding: 4rem 0;
    background-color: var(--hero-bg-color);
    margin: 3rem 0;
}
.process-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-text-color);
    max-width: 780px;
    margin: 0 auto 3.5rem auto;
    text-align: center;
}
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.process-step {
    background-color: var(--background-color-light);
    padding: 2rem;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-light);
    border: 1px solid var(--frame-border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(30px);
}
.process-step.is-visible { /* Clase añadida por JS al hacer scroll */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}
.process-step__icon-wrapper {
    margin-bottom: 1.5rem;
}
.process-step__icon-wrapper i {
    font-size: 3rem;
    color: var(--accent-color-pink);
}
.process-step__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.process-step__description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--secondary-text-color);
}

/* --- Sección Habilidades --- */
.skills-section {
    padding: 4rem 0;
    background-color: var(--hero-bg-color);
}
.skills-layout {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}
.skills-category {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}
.skills-category-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.skills-category-header i {
    font-size: 2rem;
    color: var(--accent-color-pink);
}
.skills-category-header h3 {
    font-size: 1.7rem;
}
.skills-list {
    list-style: none;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.skills-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--frame-border-color);
}
.skills-list li:last-child {
    border-bottom: none;
}
.skills-list li i {
    font-size: 1.3rem;
    min-width: 25px;
    text-align: center;
}
.skills-list li span {
    font-weight: 500;
}

/* --- Sección Propuesta de Valor --- */
.value-proposition-section {
    padding: 4rem 0;
    background-color: var(--hero-bg-color);
}
.value-proposition-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.value-proposition__text-content {
    flex: 1;
    max-width: 600px;
}
.value-proposition__text-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}
.value-proposition__text-content .section-title::after {
    left: 0;
    transform: translateX(0);
}
.value-prop-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-text-color);
    margin-bottom: 2.5rem;
}
.value-prop-points {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.value-prop-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.value-prop-point i {
    font-size: 2.2rem;
    color: var(--accent-color-pink);
    min-width: 30px;
}
.value-prop-point h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.value-prop-point p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--secondary-text-color);
}
.value-proposition__visuals {
    flex: 0 0 40%;
    max-width: 400px;
}

/* --- Formulario de Contacto (Contact Form 7) --- */
.wpcf7 {
  background-color: #fffaf7;
  border: 1px solid var(--frame-border-color);
  border-radius: var(--border-radius-main);
  padding: clamp(1.5rem, 5vw, 3rem);
  max-width: 700px;
  margin: 2rem auto;
  box-shadow: var(--box-shadow-light);
}
.wpcf7 p {
    margin-bottom: 1.5rem;
}
.wpcf7 label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--primary-text-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wpcf7 .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  padding: 0.9em 1.1em;
  border: 1.5px solid var(--frame-border-color);
  border-radius: var(--border-radius-soft);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--primary-text-color);
  background-color: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpcf7 textarea {
  resize: vertical;
  min-height: 150px;
}
.wpcf7 .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--accent-color-pink);
  box-shadow: 0 0 0 3px rgba(232, 140, 141, 0.25);
}
.wpcf7 .wpcf7-submit {
  background-color: var(--accent-color-pink);
  color: white;
  padding: 0.9em 3em;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: var(--border-radius-soft);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.wpcf7 .wpcf7-submit:hover {
  background-color: var(--accent-color-pink-darker);
}
.wpcf7-response-output {
  margin-top: 1.5rem;
  border: 1px solid var(--accent-color-pink);
  padding: 1rem;
  background-color: #fff3f4;
  border-radius: var(--border-radius-soft);
  color: #c14254;
}
.wpcf7 .wpcf7-not-valid-tip {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* --- Modals (Portafolio y Servicios) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(40, 40, 40, 0.75);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.modal-overlay.is-active {
    opacity: 1; visibility: visible; transition-delay: 0s;
}
.modal {
    background-color: var(--hero-bg-color);
    border-radius: var(--border-radius-main);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%; max-width: 1100px; max-height: 90vh;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.is-active .modal {
    transform: scale(1);
}
.modal__close-btn {
    position: absolute; top: 1rem; right: 1.5rem;
    background: none; border: none;
    font-size: 2.5rem; font-weight: 300; line-height: 1;
    color: var(--accent-color-pink);
    cursor: pointer; padding: 0.25rem; z-index: 10;
}
.modal__close-btn:hover {
    color: var(--accent-color-pink-darker);
}
.modal__content {
    padding: 2.5rem 3rem;
    flex-grow: 1;
    overflow-y: auto;
}
/* Estilos para Modal de Portafolio (2 columnas) */
.modal__content--portfolio-layout {
    display: flex;
}
.modal__column { padding: 0 1.5rem; }
.modal__column--images { flex: 0 0 55%; }
.modal__column--text { flex: 0 0 45%; border-left: 1px solid var(--frame-border-color); padding-left: 2.5rem; }

.modal__image-gallery {
    background-color: rgba(0,0,0,0.03);
    border-radius: var(--border-radius-soft);
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
}
.modal__image-gallery .modal-gallery-item {
    margin-bottom: 1.5rem;
}
.modal__image-gallery img {
    width: 100%; border-radius: var(--border-radius-soft);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: zoom-in;
}
.modal__image-gallery img:last-child { margin-bottom: 0; }
.modal-gallery-item__subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-text-color);
    margin-top: 0.75rem;
    text-align: center;
}
.modal__project-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.25rem;
}
.modal__project-category {
    font-size: 0.9rem; color: var(--accent-color-pink);
    text-transform: uppercase; letter-spacing: 1px;
    font-weight: 700; margin-bottom: 1.5rem;
}
.modal__project-description {
    font-size: 0.95rem; line-height: 1.7;
    color: var(--secondary-text-color); margin-bottom: 2rem;
}
.modal__project-link.btn {
    display: inline-block; background-color: var(--primary-text-color);
    color: white; border-color: var(--primary-text-color);
    padding: 0.7em 1.8em;
}
.modal__project-link.btn:hover {
    background-color: var(--secondary-text-color);
    border-color: var(--secondary-text-color);
}

/* --- Lightbox de Imágenes --- */
.image-lightbox-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.image-lightbox-overlay.is-active {
    opacity: 1; visibility: visible; transition-delay: 0s;
}
.image-lightbox-content {
    position: relative; max-width: 90vw; max-height: 90vh;
    overflow-y: auto;
}
#lightbox-image {
    display: block; width: auto; height: auto; max-width: 100%;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    transform: scale(0.9); transition: transform 0.3s ease;
}
.image-lightbox-overlay.is-active #lightbox-image {
    transform: scale(1);
}
.image-lightbox__close-btn {
    position: fixed; top: 20px; right: 20px;
    background-color: rgba(30, 30, 30, 0.8); color: white;
    border: none; border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 1.8rem; line-height: 38px; text-align: center;
    cursor: pointer; z-index: 3010;
    transition: background-color 0.2s ease;
}
.image-lightbox__close-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* --- Footer --- */
.site-footer {
    background-color: transparent;
    color: var(--secondary-text-color);
    padding: 2rem 0 1rem;
    font-size: 0.9rem;
    margin-top: 4rem;
    border-top: 1.5px solid var(--frame-border-color);
}
.site-footer__bottom-minimal {
    text-align: center;
    padding-top: 1rem;
}
.site-footer__bottom-minimal p {
    margin-bottom: 0;
    letter-spacing: 0.5px;
}
.site-footer__bottom-minimal .fa-heart {
    color: var(--accent-color-pink);
    margin: 0 0.2em;
    font-size: 0.9em;
}

/* --- Botón Volver Arriba --- */
.scroll-to-top-btn {
    position: fixed; bottom: 25px; right: 25px; z-index: 999;
    background-color: var(--primary-text-color); color: white;
    border: none; border-radius: 50%; width: 50px; height: 50px;
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.scroll-to-top-btn.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.scroll-to-top-btn:hover, .scroll-to-top-btn:focus {
    background-color: var(--accent-color-pink);
    outline: none;
}

/* ==========================================================================
   Responsive (Punto de quiebre principal: 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .page-wrapper { margin: 1.5rem auto; padding: 1rem; border-radius: 20px; }

    /* --- Navegación Móvil --- */
    .menu-toggle { display: block; }
    .header-social-icons { display: none; }
.main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.main-navigation.is-active {
    transform: translateX(0);
}

.main-navigation__list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 80px;
}

.main-navigation__list a {
    display: block;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 30px;
    padding-left: 60px;
    font-size: 1.2rem;
    color: #444;
    text-decoration: none;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-navigation__list a:hover {
    background-color: #f7f5f2;
    color: #e27d7d;
}

.main-navigation__list .current-menu-item a {
    color: #e27d7d;
    font-weight: bold;
    border-left: 4px solid #e27d7d;
    padding-left: 26px;
}

.menu-toggle.is-active {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1001;
}

body.no-scroll {
    overflow: hidden;
}

/* 2. El Estado Activo (Cuando se muestra el menú) */
.main-navigation.is-active {
    transform: translateX(0); /* Lo trae de vuelta a la pantalla */
}


/* 3. La Lista de Links (<ul>) */
.main-navigation__list {
    list-style: none; /* Quitamos los puntos de la lista */
    padding: 0;
    margin: 0;
    text-align: center; /* Centramos el texto de los links */
}


.main-navigation__list a:hover {
    color: #e27d7d; /* Tu color de acento al pasar el mouse */
}

/* 5. Estilo para el link de la página actual */
.main-navigation__list .current-menu-item a {
    font-weight: bold;
    color: #e27d7d; /* Destaca el link de la página en la que estás */
}

/* 6. Para evitar que la página haga scroll cuando el menú está abierto */
body.no-scroll {
    overflow: hidden;
}
    .main-navigation.is-active { display: flex; }
    .main-navigation__list {
        flex-direction: column; gap: 1rem; text-align: center;
    }
    .main-navigation__link { font-size: 1.5rem; font-weight: 700; display: block; padding: 1rem; }
    .main-navigation__link::after { display: none; }

    /* --- Sección Sobre Mí --- */
    .about-me-layout { flex-direction: column; align-items: center; gap: 2rem; }
    .about-me__visuals { margin-right: 0; margin-bottom: 2rem; max-width: 350px; }
    .about-me__text-content { text-align: center; }

    /* --- Servicios --- */
    .service-item--featured { flex-direction: row; }
    .service-item--featured .service-item__image-wrapper { flex: 0 0 50%; height: auto; min-height: 400px; }
    .service-item--featured .service-item__content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 3rem 4rem; }
}

/* ==========================================================================
   Responsive (Punto de quiebre: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .page-wrapper { margin: 1rem 0.5rem; padding: 0.75rem; }
    .site-header { padding: 0.75rem 0; }
    
    .hero-main-title-portfolio { font-size: clamp(2.5rem, 12vw, 4.5rem); letter-spacing: -1px; }
    .hero-lead-text-portfolio { font-size: clamp(1.8rem, 5vw, 2.5rem); }
    .hero-sub-text-portfolio { font-size: clamp(0.85rem, 2.2vw, 1rem); }
    .hero-decorative-image { width: 70%;    max-width: 250px; transform: translateY(-30px); }
    .scroll-down-arrow { bottom: 2rem; width: 40px; height: 40px; font-size: 1.1rem; }

    .about-me__visuals { max-width: 300px; }
    .about-me__photo-wrapper { width: 75%; margin-top: -60px; padding: 10px 10px 35px 10px; }
    
    .section-title { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }

    /* Servicios en Móvil */
    .service-item--featured { flex-direction: column; }
    .service-item--featured .service-item__image-wrapper { height: 240px; min-height: unset; }
    .service-item--featured .service-item__content { padding: 1.5rem 2rem; text-align: center; }
    .service-item--featured .service-item__cta-link { align-self: center; }
    .services-secondary-grid { grid-template-columns: 1fr; gap: 2rem; }
    .service-item__content { padding: 1.25rem 1.5rem; text-align: center; }
    .service-item__cta-link { align-self: center; }

    /* Habilidades en Móvil */
    .skills-layout { flex-direction: column; align-items: center; gap: 2.5rem; }
    .skills-category-header { justify-content: flex-start; padding-left: 1rem; }

    /* Propuesta de Valor en Móvil */
    .value-proposition-layout { flex-direction: column; align-items: center; gap: 2.5rem; }
    .value-proposition__text-content, .value-prop-point { text-align: center; }
    .value-proposition__text-content .section-title--centered { text-align: center; }
    .value-proposition__text-content .section-title--centered::after { left: 50%; transform: translateX(-50%); }

    /* Modal en Móvil */
    .modal { max-width: 95vw; max-height: 90vh; }
    .modal__content, .modal__content--portfolio-layout { flex-direction: column; padding: 2rem 1.5rem; }
    .modal__column { padding: 0; }
    .modal__column--images { max-height: 40vh; margin-bottom: 2rem; }
    .modal__column--text { border-left: none; padding-left: 0; text-align: center; }
    .section-intro {
        margin-bottom: 6em; 
    }
}

/* ==========================================================================
   Responsive (Punto de quiebre: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .hero-main-title-portfolio { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .hero-lead-text-portfolio { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
    .wpcf7 { padding: 1.5rem 1rem; }
    .wpcf7 .wpcf7-submit { width: 100%; }
}

/* Utilidad para espaciado de secciones */
.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* En móvil */
@media (max-width: 768px) {
    .section-padding {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

.contact-alternatives {
    background-color:transparent;
    padding: 3rem 3rem;
    margin-top: 7rem;
    text-align: center;
    border-top: 2px solid #f0f0f0;
}

.site-footer p {
    color: #555; 
    font-size: 0.9rem;
}

.social-icons-contact-page {
    display: flex;          
    justify-content: center; 
    gap: 1.5rem;             
    margin-top: 1rem;        
}

.social-icons-contact-page a {
    font-size: 1.8rem;       
    color: #4a4a4a;        
    transition: color 0.3s ease; 
}

/* Efecto al pasar el mouse por encima */
.social-icons-contact-page a:hover {
    color: #e27d7d; 
}


/* 2. Estilos para el footer final con el copyright */
.site-footer {
    margin-top: 4rem;      
    padding-bottom: 2rem;  
    border-top: 2px solid #f0f0f0;
    padding-top: 2rem;
}

.site-footer__bottom-minimal p {
    text-align: center; 
    font-size: 0.9rem;
    color: #888;
}

.site-footer .fa-heart {
    transform: scale(0.9); 
    display: inline-block;
}


/* 1. Contenedor del Botón */

.final-cta-section {
    display: flex;
    justify-content: center;
    margin-top: 8rem; 
    margin-bottom: 4rem;
}

/* 2. Estilos del Botón de WhatsApp */
.btn.btn-whatsapp {
    padding: 1rem 2rem; 
    background-color: #25D366; 
    color: white; 
    border-radius: 50px; 
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

/* 3. Estilo para el Icono Dentro del Botón */
.btn-whatsapp .fab.fa-whatsapp {
    font-size: 1.5rem;
    margin-right: 12px; 
}

/* 4. Efecto al Pasar el Mouse */
.btn.btn-whatsapp:hover {
    background-color: #1EAE56;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}
.section-intro {
    text-align: center; 
    max-width: 650px;   
    margin-left: auto; 
    margin-right: auto;
    margin-bottom: 5em; 
    font-size: 1.1em;  
    line-height: 1.6;  
}

/* --- ESTILOS PARA LA SECCIÓN DE PROPUESTA DE VALOR EN MÓVIL --- */

@media (max-width: 768px) {

    /* --- 1. Alinear los puntos de valor verticalmente --- */
    .value-prop-point {
        display: flex;              
        flex-direction: column;    
        align-items: center;       
        text-align: center;        
        gap: 0.5em;                 
    }

   
    .value-prop-point:not(:last-child) {
        margin-bottom: 2.5em;
    }
    
    /* --- 2. Achicar el botón de WhatsApp --- */
    .btn--large.btn-whatsapp {
        padding: 1em 1.5em;         
        width: 80%;                
        box-sizing: border-box;     
    }

}

.btn-whatsapp {
    padding: 14px 22px;   /* Un poco más grande que en móvil, pero más chico que el original */
    font-size: 14px;      /* Tamaño de letra base reducido */
}