:root {
    /* Color Palette - Vibrant & High Contrast */
    --primary: #54a4a6;
    /* Corporate Teal */
    --primary-bright: #6bb9bb;
    --secondary: #3a6768;
    /* Dark Corporate */
    --accent: #FFB800;
    /* Warm Gold */
    --accent-glow: #FFD700;
    --magic-purple: #8B5CF6;
    /* Magical Lavender */
    --magic-pink: #F472B6;
    /* Playful Pink */

    --text-main: #0F172A;
    /* Deep Navy (Slate-900) */
    --text-muted: #475569;
    /* Slate-600 */
    --bg-white: #FFFFFF;
    --bg-soft: #F8FAFC;
    /* Light Slate Gray */

    --gradient-vibrant: linear-gradient(135deg, var(--primary) 0%, var(--magic-purple) 100%);
    --gradient-corporate: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-magic: linear-gradient(135deg, var(--magic-purple) 0%, var(--magic-pink) 100%);
    --gradient-joy: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);

    --shadow-vibrant: 0 10px 30px rgba(84, 164, 166, 0.25);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* Animation Timings */
    --transition-magic: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);

    /* Aurora Variables - High Contrast */
    --aurora-1: #54a4a6;
    --aurora-2: #8B5CF6;
    --aurora-3: #FFB800;
    --aurora-4: #F472B6;

    --clay-bg: #FFFFFF;
    --clay-shadow-out: 0 15px 35px rgba(0, 0, 0, 0.08);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Quicksand:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-soft);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

/* Base Components */
.container {
    max-width: 1400px;
    /* Increased for better desktop breathing room */
    margin: 0 auto;
    padding: 0 40px;
    /* Increased side padding */
}

.btn {
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: none;
    font-family: 'Quicksand', sans-serif;
    white-space: nowrap;
    /* Prevent wrapping */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-vibrant);
    color: white;
    box-shadow: var(--shadow-vibrant);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(84, 164, 166, 0.3);
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    /* Increased gap */
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-links li a:hover {
    color: var(--primary);
    background: rgba(84, 164, 166, 0.05);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-soft);
    border-radius: 10px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 5px 20px;
}

.dropdown-menu a {
    font-size: 0.9rem;
}

/* Hero Section - Aurora UI */
.hero {
    padding: 180px 0 120px;
    background: url('../img/hero-custom.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 90vh;
    /* Increased height for impact */
    display: flex;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.7));
    /* Content visibility overlay */
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 70% 30%, var(--aurora-1) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, var(--aurora-2) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, var(--aurora-3) 0%, transparent 40%),
        radial-gradient(circle at 30% 30%, var(--aurora-4) 0%, transparent 40%);
    filter: blur(80px);
    animation: aurora-move 20s linear infinite;
    transform: translate(calc(var(--mouse-x, 0) * 50px), calc(var(--mouse-y, 0) * 50px));
    z-index: 0;
    opacity: 0.6;
    transition: transform 0.2s ease-out;
}

.hero .container {
    position: relative;
    z-index: 2;
    /* Bring text above the overlay */
}

@keyframes aurora-move {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.hero p {
    font-size: 1.3rem;
    max-width: 650px;
    margin: 0 auto 35px;
    color: var(--text-main);
    font-weight: 500;
}

.hero-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .section-title {
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .section-title p {
        font-size: 1rem;
    }
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    /* Space for the bar and subtitle */
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: var(--gradient-magic);
    border-radius: 10px;
}

#porque-nosotros .section-title h2::after {
    background: var(--gradient-joy);
}

/* Card Style */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .card-grid {
        gap: 25px;
    }
}

.card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), var(--clay-shadow-in);
    overflow: visible;
    z-index: 50;
}

.vibrant-img {
    filter: saturate(1.4) contrast(1.1) brightness(1.05);
}

/* Placeholder & Images */
.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-repeat: no-repeat;
    border-radius: 24px 24px 0 0;
}

.card:hover .card-img {
    transform: scale(1.4);
    background-size: contain;
    background-color: #f1f5f9;
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
}


.placeholder-img {
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img::before {
    display: none;
    /* Removed the "Two Dreams" text over photos */
}

/* Animación Section Custom Styles */
.grid-2-to-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-2-to-1 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.animacion-img {
    height: 400px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-repeat: no-repeat;
    position: relative;
}

.animacion-img:hover {
    transform: scale(1.2);
    background-size: contain;
    background-color: #f1f5f9;
    z-index: 100;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}


/* Welcome Section Styles */
#bienvenida .welcome-text h2 {
    color: var(--text-main);
}

#bienvenida .welcome-text p {
    line-height: 1.8;
}

@media (max-width: 992px) {
    #bienvenida .container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px !important;
    }

    #bienvenida .welcome-text div {
        justify-content: center;
    }
}

/* Why Choose Us Icons & Cards */
#porque-nosotros i {
    transition: transform 0.3s ease;
}

#porque-nosotros div:hover i {
    transform: scale(1.2);
}

/* FAQ Styling */
#faq h4 {
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

#faq h4:hover {
    color: var(--secondary);
}

#faq p {
    line-height: 1.6;
}

.card-content {
    padding: 25px;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: #E0F2FE;
    color: #0369A1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #BAE6FD;
}

/* Placeholder */
.placeholder-img {
    background: #F1F5F9;
    position: relative;
}

.placeholder-img::before {
    display: none;
}

/* Floating Buttons */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    font-size: 1.5rem;
}

.whatsapp-btn {
    background-color: #25D366;
}

.instagram-btn {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    pointer-events: none;
    animation: sparkle 1.5s infinite;
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Floating Magical Elements */
.magic-icon {
    position: absolute;
    color: var(--primary);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    animation: float-slow 10s ease-in-out infinite;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, -30px) rotate(-5deg);
    }
}

/* Enhanced Buttons with Glow */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::after {
    opacity: 1;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Card Shine Effect */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 50%;
    height: 300%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.5),
            transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    z-index: 2;
    pointer-events: none;
}

.card:hover::before {
    left: 150%;
    top: 150%;
}

/* Section Reveal Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Selection Color */
::selection {
    background: var(--primary);
    color: white;
}

/* Footer Optimized */
footer {
    background: #0F172A;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--secondary);
    position: relative;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Nav - Hamburger Logic */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 3px solid var(--primary);
        z-index: 1001;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Contact Form Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info-box {
    background: var(--gradient-vibrant);
    color: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-vibrant);
}

.contact-info-box h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-row i {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.lead-form {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #EDF2F7;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.02);
}

@media (max-width: 768px) {

    .contact-grid,
    .form-row,
    .grid-2-to-1 {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .contact-info-box,
    .lead-form {
        padding: 30px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo img {
        height: 40px !important;
    }

    .floating-contact {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .card-content {
        padding: 20px;
    }
}