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

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden ;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    background-attachment: fixed;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

h1, h2, h3 {
    font-family: 'Caveat', cursive;
}

/* Header */
header {
    background: linear-gradient(45deg, #e1bee7 0%, #d7b6f9 85%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(192, 132, 252, 0.3);
    }

.logo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding: 12px; /* Marco sutil */
    background: rgba(255, 255, 255, 0.08); /* Fondo translúcido muy sutil */
    border-radius: 18px;
    backdrop-filter: blur(8px); /* Efecto cristal suave */
}

.logo::before {
    content: "♡";
    color: rgba(239, 68, 68, 0.8); /* Más transparente */
    font-size: 2.5rem; /* Tamaño ajustado */
    position: absolute;
    left: -3rem;
    top: 0.5rem;
}

.logo::after {
    content: "✿";
    color: rgba(236, 72, 153, 0.8); /* Más transparente */
    font-size: 1.8rem; /* Tamaño ajustado */
    position: absolute;
    right: -2.5rem;
    top: 0.8rem;
}

.logo img {
    height: 200px; /* Tamaño equilibrado */
    filter: brightness(1.2) contrast(1.05) saturate(1.1) drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    border: 2px solid rgba(255, 255, 255, 0.25); /* Borde sutil */
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animaciones suaves */
}

.logo img:hover {
    transform: scale(1.03); /* Efecto hover sutil */
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15); /* Sombra al hover */
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
}

/* Navigation */
nav {
    background: linear-gradient(45deg, #ef4444 0%, #f87171 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* Main sections */
main {
    flex: 1 0 auto;
}

.section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ef4444;
    position: relative;
}

.section-title::after {
    content: "✿❀✿";
    display: block;
    color: #ec4899;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.quote {
    font-style: italic;
    text-align: center;
    margin: 2rem auto;
    background-color: rgba(239, 137, 185, 0.79);
    padding: 1rem 2rem;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    font-size: 1.1rem;
    line-height: 1.5;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%   { transform: translateY(0);}
    50%  { transform: translateY(-8px);}
    100% { transform: translateY(0);}
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.profile-image {
    height: 250px;
    width: 250px;
    background: linear-gradient(45deg, #e1bee7 0%, #fbbf24 100%);
    border-radius: 50%;
    align-items: center;
    display: flex;
    font-size: 6rem;
    justify-content: center;
    margin: 0 auto;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-text {
    background: white;
    font-size: 1.2rem;
    border-radius: 15px;
    padding: 2rem;
    border-left: 5px solid #ef4444;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Projects section */
.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    display: grid;
    margin-top: 2rem;
    gap: 2rem;
}

.project-card {
    border-radius: 15px;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 2rem;
    border-top: 4px solid;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:nth-child(1) {
    border-top-color: #ef4444;
}

.project-card:nth-child(2) {
    border-top-color: #c084fc;
}

.project-card:nth-child(3) {
    border-top-color: #ec4899;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: all 0.3s ease-in-out;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: #ef4444;
    font-size: 1.5rem;
}

.project-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.project-link {
    color: white;
    background: linear-gradient(45deg, #ef4444 0%, #ec4899 100%);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

.project-link:hover {
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}

/* Blog section */
.blog-preview {
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.blog-post {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h3 {
    margin-bottom: 0.5rem;
    color: #c084fc;
}

.blog-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    color: white;
    background: linear-gradient(45deg, #1f2937 0%, #4b5563 100%);
    padding: 3rem 0;
    margin-top: 0;
    text-align: center;
    flex-shrink: 0;
}

.footer-content {
    justify-content: center;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-symbol {
    color: #ec4899;
    font-size: 2rem;
}

/* Decorative elements */
.decorative-element {
    color: #fbbf24;
    position: absolute;
    opacity: 0.3;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.flower-left {
    top: 20%;
    left: 5%;
}

.flower-right {
    top: 60%;
    right: 5%;
}

.heart-decoration {
    top: 10%;
    position: absolute;
    color: #ef4444;
    right: 10%;
    opacity: 0.2;
    font-size: 3rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo::before,
    .logo::after {
        display: none;
    }

    nav ul {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .decorative-element {
        display: none;
    }
}

/* CSS para el formulario desplegable de contacto */
.contact-dropdown {
    position: relative;
    display: inline-block;
}

.contact-trigger {
    background: linear-gradient(45deg, #ef4444 0%, #ec4899 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
    position: relative;
}

.contact-trigger:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.contact-trigger::after {
    content: "❀";
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #c084fc;
    font-size: 1.5rem;
    opacity: 0.8;
}

.dropdown-form {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-top: 4px solid #c084fc;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.4s ease;
    z-index: 1000;
    margin-top: 10px;
}

.contact-dropdown:hover .dropdown-form {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.form-container {
    padding: 2rem;
    position: relative;
}

.form-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ef4444;
    font-family: 'Georgia', serif;
    position: relative;
}

.form-title::after {
    content: "✿";
    display: block;
    color: #ec4899;
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #333;
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c084fc;
    background: white;
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.1);
    transform: translateY(-1px);
}

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

.form-submit {
    background: linear-gradient(45deg, #c084fc 0%, #ec4899 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    align-self: center;
}

.form-submit:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 5px 15px rgba(192, 132, 252, 0.4);
}

.form-submit:active {
    transform: scale(1.02);
}

/* Decoración sutil */
.form-container::before {
    content: "♡";
    position: absolute;
    top: 10px;
    right: 20px;
    color: #ef4444;
    font-size: 1.5rem;
    opacity: 0.6;
}

/* Flecha indicadora en el formulario */
.dropdown-form::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #c084fc;
}

/* Estados de validación */
.form-group input:valid,
.form-group textarea:valid {
    border-color: #10b981;
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Mantener el formulario abierto al interactuar con él */
.dropdown-form:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .dropdown-form {
        width: 320px;
        left: 0;
        transform: none;
        margin-left: 0;
    }
    
    .contact-dropdown:hover .dropdown-form {
        transform: translateY(0);
    }
    
    .dropdown-form:hover {
        transform: translateY(0);
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .form-container::before {
        display: none;
    }
    
    .contact-trigger::after {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .form-container::before,
    .form-container::after {
        display: none;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #c084fc 0%, #ec4899 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active {
    transform: translateY(0);
}

/* Icono de flecha hacia arriba */
.scroll-to-top::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid white;
}

.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(45deg, #e1bee7 0%, #d7b6f9 85%);
    padding: 15px 8px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ef4444 0%, #ec4899 100%);  /* Color base uniforme */
    color: white;
    transition: background-color 0.3s ease;
}

.social-btn:hover {
    background-color: #db2777;  /* Variante al hacer hover */
}

.social-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Efectos hover */
.social-btn:hover {
    transform: scale(1.15) translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-btn:hover svg {
    transform: scale(1.1);
}

/* Efecto de ondas al hacer hover */
.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-btn:hover::before {
    transform: scale(1);
}

/* Decoración */
.social-decoration {
    font-size: 1.5rem;
    color: #ec4899;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
    margin-top: 10px;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Tooltips */
.social-btn::after {
    content: attr(aria-label);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Georgia', serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-btn:hover::after {
    opacity: 1;
    visibility: visible;
    left: 55px;
}

/* Responsive - ocultar en móviles pequeños */
@media (max-width: 768px) {
    .social-sidebar {
        left: 10px;
        transform: translateY(-50%) scale(0.9);
    }
    
    .social-buttons {
        padding: 12px 6px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
    }
    
    .social-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .social-btn::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .social-sidebar {
        display: none;
    }
}

