* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    --section-space-desktop: 45px;
    --section-space-mobile: 30px;

}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    /* background: #FFCBA8; */
    background: #ffffff;
    color: #222;
    line-height: 1.5;
    padding-top: var(--navbar-height);
}

a, button, .card, .servicio-card {
    transition: all 0.28s ease;
}

/* ===========================================================
                            PALETA
=========================================================== */
:root {
    --navbar-height: 72px;
    --primary-color: #5c2d91;
    --primary-light: #7b42c3;
    --text-dark: #222;
    --text-light: #555;
    --bg-light: #ffffff;
    --bg-soft: #ffffff;
    --shadow-sm: 0 6px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* NAVBAR */
.navbar {
    background: var(--primary-color);
    color: white;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #ffffff;     
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a.active {
    font-weight: 700;
    color: #ffffff;     
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    font-weight: 700;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    width: 70%;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.nav-links a:hover::before {
    width: 80%;
}

.nav-links a.active {
    color: #ffffff !important;
    font-weight: 700;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.navbar .logo{
    margin-left: 5%;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===========================================================
   HERO - Espacio ajustado
=========================================================== */
.hero {
    min-height: calc(100vh - var(--navbar-height));
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 50px 30px; /* Reducido padding-bottom */
    gap: 30px;
    background: var(--bg-light);
}

.hero-text {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-text h1 {
    font-size: 2.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.hero-text p {
    margin-bottom: 1rem;
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
    text-align: justify;
    color: var(--text-light);
    margin-top: 20px;
}

.hero-text .btn-primary {
    margin-top: 1rem;
    padding: 12px 28px;
}

.hero-img {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-img img {
    display: block;
    max-width: 700px;
    width: 100%;
    height: auto;
    transform: translateX(-30px);
    transition: transform 0.2s ease, margin 0.2s ease;
    margin-left: 10px;
    max-width: 700px;
    width: 100%;
}

/* ===========================================================
                            BUTTONS
=========================================================== */
.btn-primary {
    background: var(--primary-light);
    padding: 14px 28px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    display: inline-block;
    margin-top: 40px;        
    margin-left: 100px;           
}

.btn-primary:hover {
    background: #692fad;
    transform: translateY(-2px);
}

/* ===========================================================
   FOOTER
=========================================================== */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 20px;
}

.social {
    margin-top: 10px;
}

.social a {
    margin: 0 10px;
    font-size: 1.6rem;       
    color: white;            
    text-decoration: none;
    transition: 0.2s ease;
}

/* ===========================================================
   NOSOTRAS
=========================================================== */
.nosotras-section {
    background: var(--bg-soft);
    padding: 90px 40px; 
}

.intro {
    padding: 60px 20px 20px; 
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
}

.intro h1 {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

/* CARDS CONTAINER */
.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* INDIVIDUAL CARD */
.card {
    flex: 1 1 300px;
    max-width: 350px;
    border-radius: 18px;
    padding: 35px 25px;
    box-shadow: var(--shadow-sm);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-top: #FFCBA8 4px solid;
}

/* CARD HEADER (Avatar + Name) */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.avatar-empty {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 3px dashed #ccc;
    flex-shrink: 0;
}

.card-header h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CARD DESCRIPTION */
.desc {
    flex-grow: 1;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

/* SOCIAL ICONS IN CARD */
.social-card {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.social-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.social-card a:hover {
    background: #FFCBA8;
    color: #fff;
    transform: scale(1.15);
}

/* ===========================================================
   SERVICIOS
=========================================================== */
.servicios-section {
    padding: 90px 40px; 
    background: var(--bg-soft);
    text-align: center;
}

.servicios-title {
    font-size: 2.8em;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 30px;
}

.servicios-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.servicio-card {
    padding: 35px 25px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-top: #FFCBA8 4px solid;
}

.servicio-icon {
    width: 75px;
    height: 75px;
    margin-bottom: 18px;
}

.servicio-card h3 {
    color: var(--text-dark);
}

.servicio-card p {
    color: var(--text-light);
}

/* ===========================================================
   CONTACTO
=========================================================== */
.contacto {
    padding: 90px 40px; 
    text-align: center;
    background: var(--bg-light);
}

.formulario-contacto {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fila {
    display: flex;
    gap: 20px;
}

.fila .campo {
    flex: 1;
}

.campo {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.campo label {
    margin-bottom: 5px;
    font-weight: 600;
}

.campo input,
.campo textarea {
    resize: none;   
    padding: 12px;
    border: 1px solid #b28cff;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

.campo input:focus,
.campo textarea:focus {
    border-color: #A020F0;
    box-shadow: 0 0 5px rgba(160, 32, 240, 0.4);
}

.btn-enviar {
    padding: 12px 30px;
    background: linear-gradient(90deg, #A020F0, #D020F0);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s ease;
}

.btn-enviar:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #8d1fd4, #bb1fd4);
}

.errores {
    margin-top: 10px;
    color: #ff4d6d;
    font-weight: 600;
    text-align: left;
}

/* ===========================================================
   TRABAJOS
=========================================================== */
.trabajos-section {
    padding: 90px 40px; 
    background: var(--bg-light);
    text-align: center;
}

.trabajos-title {
    font-size: 2.8em;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 40px;
}

.trabajos-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.trabajo-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.trabajo-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.trabajo-img {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.trabajo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trabajo-item:hover .trabajo-img img {
    transform: scale(1.05);
}

.trabajo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(92, 45, 145, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trabajo-item:hover .trabajo-overlay {
    opacity: 1;
}

.trabajo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.trabajo-item:hover .trabajo-link {
    transform: translateY(0);
}

.trabajo-link:hover {
    background: var(--primary-light);
    color: white;
}

.trabajo-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.trabajo-link:hover i {
    transform: translateX(5px);
}

.trabajo-info {
    padding: 20px;
    text-align: left;
}

.trabajo-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.trabajo-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* SUBRAYADO ACTIVO EN EL MENÚ */
.nav-link.active {
    font-weight: 700;
    color: white !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* ==================== SCROLL ANIMATION ==================== */
.scroll-animation {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

.cards-container .card,
.servicios-grid .servicio-card,
.trabajos-grid .trabajo-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cards-container .card.visible,
.servicios-grid .servicio-card.visible,
.trabajos-grid .trabajo-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 900px) {
    .trabajos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .trabajos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .trabajo-img {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .trabajos-section {
        padding: 40px 20px;
    }
    
    .trabajos-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .trabajos-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
        gap: 25px;
    }
    
    .trabajo-img {
        height: 220px;
    }
    
    .trabajo-info {
        padding: 15px;
    }
    
    .trabajo-info h3 {
        font-size: 1.2rem;
    }
}
/* ==================== MENU HAMBURGUESA ==================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 25px 0;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
    }
}
/* ==================== MENU HAMBURGUESA ==================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.9rem;
    color: white;
    cursor: pointer;
    z-index: 1100;
}

/* MOBILE */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 25px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 30px 0;
        display: none;
        z-index: 1000;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
    }
}
/* ==================== FORMULARIO RESPONSIVE ==================== */

@media (max-width: 768px) {
    .formulario-contacto {
        padding: 0 10px;
    }

    .fila {
        flex-direction: column;
    }

    .campo input,
    .campo textarea {
        font-size: 16px; 
    }
}
/* ==================== HERO RESPONSIVE ==================== */

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .hero-text {
        align-items: center;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-text p {
        text-align: center;
        font-size: 1rem;
    }

    .hero-img img {
        transform: none;
        max-width: 100%;
        margin: 20px auto 0;
    }

    .btn-primary {
        margin-left: 0;
    }
}
/* ==================== SERVICIOS RESPONSIVE ==================== */

/* TABLET */
@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .servicios-section {
        padding: 50px 20px;
    }

    .servicios-title {
        font-size: 2.2rem;
    }
}
/* ==================== ESPACIO HERO / NAVBAR ==================== */

.hero {
    padding-top: calc(var(--navbar-height) + 40px);
}
/* ==================== ESPACIADO ENTRE SECCIONES ==================== */

.nosotras-section,
.servicios-section,
.trabajos-section,
.contacto {
    padding-top: var(--section-space-desktop);
    padding-bottom: var(--section-space-desktop);
}

@media (max-width: 768px) {
    .nosotras-section,
    .servicios-section,
    .trabajos-section,
    .contacto {
        padding-top: var(--section-space-mobile);
        padding-bottom: var(--section-space-mobile);
    }
}
section + section {
    margin-top: 20px;
}
