@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --primary: #663c7c;
    --primary-light: #8e6bac;
    --primary-dark: #4a2b5a;
    --secondary: #f7f7f7;
    --accent: #0095eb;
    --text-main: #333333;
    --text-muted: #676767;
    --text-light: #a8a8a8;
    --bg-main: #ffffff;
    --bg-alt: #fcfcfc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --section-padding: 80px 5%;
    --mobile-padding: 50px 5%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 600;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- Layout Sections --- */
section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    section {
        padding: var(--mobile-padding);
    }
}

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Transparent Header at top - using high specificity to ensure white color */
header:not(.scrolled) .nav-links li a,
header:not(.scrolled) .logo-text {
    color: var(--white) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

header:not(.scrolled) .logo img {
    filter: brightness(0) invert(1) !important;
}

header:not(.scrolled) .menu-toggle span {
    background: var(--white) !important;
}

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

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    transition: var(--transition);
}



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

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

.cta-button {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 60, 124, 0.3);
}

.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    /* Sophisticated overlay: darker at edges, clearer at center */
    background: url('../img/entrada2.jpg');

    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 0; /* Reduced height for a more elegant transition */
    background: linear-gradient(to top, 
        var(--bg-main) 0%, 
        rgba(255, 255, 255, 0.8) 20%, 
        transparent 100%);
    pointer-events: none;
}




.hero-content {
    max-width: 850px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}


.hero h1 {
    color: var(--primary);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.4rem;
    color: var(--primary-light);
    font-weight: 300;
}


/* --- Services Grid --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.service-photo {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.service-card:hover .service-photo {
    transform: scale(1.05);
}

.service-info {
    padding: 30px;
    text-align: center;
}

.service-card::before {
    z-index: 2;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}


.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* --- Enfoque Section --- */
#enfoque {
    padding-top: 100px;
    padding-bottom: 100px;
}

.enfoque-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.enfoque-text .subtitle {
    display: block;
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.enfoque-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.enfoque-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.enfoque-image-wrapper {
    position: relative;
    padding: 20px;
}

.enfoque-image-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    border: 3px solid var(--primary-light);
    border-radius: 30px;
    z-index: 0;
}

.enfoque-image {
    position: relative;
    z-index: 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: var(--bg-alt);
    margin-top: 30px;
    margin-left: 30px;
}

.enfoque-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.enfoque-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .enfoque-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .enfoque-text h2 {
        font-size: 2.5rem;
    }
    
    .enfoque-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .enfoque-image-border {
        width: 85%;
        height: 85%;
    }
    
    .enfoque-image {
        margin-top: 20px;
        margin-left: 20px;
    }
}

/* --- Gallery & Tabs --- */
.tabs-container {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.tab-content {
    display: none;
    background: var(--bg-alt);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* --- Contact Info Grid --- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: left;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-alt);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    color: var(--white);
}

.contact-text span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-text p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    margin: 0;
}

.tel-link {
    cursor: pointer;
}

.tel-link p {
    color: var(--primary);
    font-weight: 700;
}

/* --- Footer --- */
footer {
    background: #222;
    color: #ccc;
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s all ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}
