/* Variables globales */
:root {
    --primary-color: #d4a0a7;
    --secondary-color: #b37a7d;
    --accent-color: #e8c0b8;
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #fff;
    --light-background: #f9f4f5;
    --beige-light: #f5efe9;
    --beige-dark: #e6d7cd;
    --pink-light: #f8e1e5;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;
}

/* Performance optimizations */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-weight: 400;
    /* Optimización de renderizado */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* Performance optimizations for critical elements */
.hero-title {
    will-change: auto;
    transform: translateZ(0);
    contain: layout style paint;
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* Reduce layout shifts */
.profile-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.logo-img {
    width: auto;
    height: 50px;
    display: block;
}

/* Optimize animations for better performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.decorative-element {
    margin: 15px auto;
    width: 50px;
    height: 25px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.decorative-element i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.decorative-element::before, 
.decorative-element::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 40%;
    background-color: var(--accent-color);
    top: 50%;
}

.decorative-element::before {
    left: 0;
}

.decorative-element::after {
    right: 0;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 400;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.btn:hover {
    color: var(--light-text);
    opacity: 0.9;
}

.btn-service {
    margin-top: 20px;
    background-color: var(--secondary-color);
    border: none;
}

.btn-cta {
    padding: 15px 32px;
    font-size: 1.1rem;
    background-color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-cta:hover {
    opacity: 0.9;
}

.btn-cta i {
    margin-right: 8px;
}

/* Header */
header {
    background-color: var(--pink-light);
    color: var(--secondary-color);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header h1 {
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1.2rem;
    margin-top: 5px;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Navegación */
nav {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-logo {
    padding: 10px 0;
    position: absolute;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: auto;
    height: 50px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: center;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu li a {
    display: block;
    padding: 18px 10px;
    font-weight: 400;
    color: var(--text-color);
    position: relative;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 11;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Clase para cuando el menú está activo */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Sección Hero */
.hero {
    background-color: var(--background-color);
    text-align: center;
    padding: 120px 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pink-light);
    background-color: var(--background-color);
    overflow: hidden;
}

.hero-content::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(248, 225, 229, 0.4);  /* pink-light con transparencia */
    z-index: -1;
}

.hero-content::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(245, 239, 233, 0.5);  /* beige-light con transparencia */
    z-index: -1;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 40px;
    color: var(--secondary-color);
    letter-spacing: 1px;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-bottom: 15px;
    will-change: auto;
    transform: translateZ(0);
}

.hero-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.btn-hero {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 15px 30px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(179, 122, 125, 0.25);
    margin-top: 20px;
}

/* Sobre mí */
.about {
    background-color: var(--beige-light);
    padding: 100px 0;
    position: relative;
}

.about::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 5%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(232, 192, 184, 0.2);
    z-index: 1;
}

about-content.about::after {
    content: "";
    position: absolute;
    bottom: 70px;
    right: 5%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(212, 160, 167, 0.15);
    z-index: 1;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 0 0 300px;
    margin: 0 auto;
}

.profile-img {
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    border: 6px solid white;
    width: 300px;
    height: 300px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.about-text {
    flex: 1 1 500px;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

.about-text ul {
    list-style: none;
    margin-bottom: 25px;
}

.about-text ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.about-text ul li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Servicios */
.services {
    background-color: #fff;
    padding: 100px 0;
    position: relative;
}

.services::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to right, var(--pink-light), var(--beige-light), var(--pink-light));
    opacity: 0.5;
}

.services-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.service-column {
    flex: 1 1 400px;
    background-color: #f9f4f5;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 160, 167, 0.15);
}

.service-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background-color: var(--primary-color);
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.service-column h3 {
    margin-bottom: 20px;
    font-size: 1.7rem;
}

.service-column p {
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1.05rem;
    flex-grow: 1;
    letter-spacing: 0.2px;
}

/* Social */
.social {
    background-color: var(--beige-dark);
    padding: 80px 0;
    text-align: center;
}

.social-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
}

.social-profiles {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.social-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 400;
}

.social-profile i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.social-profile:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

/* Contacto */
.contact {
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact .section-header h2 {
    color: white;
}

.contact-cta {
    margin-top: 40px;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #ffffff !important;
    font-size: 1.6rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffffff;
    text-decoration: none;
}

.social-icon i {
    /* Asegura que el ícono sea visible */
    display: inline-block !important;
    color: #ffffff !important;
    line-height: 1;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(122, 105, 179, 0.3);
}

/* Footer */
footer {
    background-color: var(--pink-light);
    color: var(--text-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
    padding-top: 20px;
    border-top: 1px solid rgba(179, 122, 125, 0.2);
    letter-spacing: 0.2px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }
    
    .about-image {
        order: -1;
        flex: 0 0 300px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
    
    .nav-logo {
        position: static;
        margin-bottom: 0;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        padding-top: 80px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 10;
        text-align: center;
        justify-content: flex-start;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-menu li a {
        padding: 15px;
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero-content {
        margin: 0 20px;
        padding: 30px 25px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    section {
        padding: 70px 0;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }
      .about-image {
        order: -1;
        flex: 0 0 300px;
    }
    
    .service-column {
        padding: 30px 20px;
    }
    
    .social-profiles {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        padding-bottom: 12px;
    }
    
    .hero-content {
        padding: 25px 20px;
    }
    
    .hero-title::after {
        width: 60px;
        height: 2px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .btn-hero {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }

    .about-image {
        order: -1;
        flex: 0 0 250px;
    }
}
