/* ========================================
   PANDORA DETECTIVES - MINIMALISTA MODERNO
   Colores heráldicos de León: Púrpura y Plata
   ======================================== */

:root {
    /* Colores principales - Marrón León */
    --leon-brown: #4A3728;
    --leon-brown-dark: #2C1810;
    --leon-brown-light: #6B4E3D;
    --leon-accent: #8B6F47;
    --leon-silver: #C0C0C0;
    --leon-silver-light: #E8E8E8;
    
    /* Neutrales */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-700: #404040;
    --gray-900: #171717;
    --black: #0A0A0A;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Work Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-padding: 40px;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.2;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--leon-brown-dark);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 80px;
    font-weight: 300;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--leon-brown);
    color: var(--white);
    border-color: var(--leon-brown);
}

.btn-primary:hover {
    background: var(--leon-brown-dark);
    border-color: var(--leon-brown-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(123, 43, 133, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--leon-brown);
    border-color: var(--leon-brown);
}

.btn-secondary:hover {
    background: var(--leon-brown);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--leon-brown);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

/* Sombra sutil solo en el texto para legibilidad */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 60px 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.logo {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(139, 111, 71, 0.3);
    animation: floatAnimation 6s ease-in-out infinite;
    border: 2px solid rgba(139, 111, 71, 0.2);
}

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

.brand-name {
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 
        0 3px 15px rgba(0, 0, 0, 1),
        0 6px 25px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(0, 0, 0, 0.7),
        2px 2px 0 rgba(0, 0, 0, 0.8);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.5)
    );
    padding: 30px 50px;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.brand-sub {
    display: block;
    font-size: 2rem;
    letter-spacing: 0.3em;
    font-weight: 600;
    margin-top: 10px;
}

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 1;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.9),
        0 4px 16px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 25px;
    border-radius: 5px;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 50px;
    opacity: 1;
    letter-spacing: 0.05em;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.9),
        0 4px 16px rgba(0, 0, 0, 0.7);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

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

.service-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(123, 43, 133, 0.15);
    border-color: var(--leon-brown-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--leon-brown);
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    stroke: var(--leon-brown-light);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-700);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.testimonial-card {
    background: var(--off-white);
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid var(--leon-brown);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 40px rgba(123, 43, 133, 0.1);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--leon-brown-light);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 30px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--gray-700);
    position: relative;
    z-index: 2;
}

.testimonial-author {
    border-top: 1px solid var(--gray-300);
    padding-top: 20px;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.author-location {
    font-size: 0.9rem;
    color: var(--leon-brown);
    font-weight: 400;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item svg {
    width: 30px;
    height: 30px;
    stroke: var(--leon-brown);
    flex-shrink: 0;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.info-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-item a {
    color: var(--leon-brown);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--leon-brown-dark);
}

/* Form Styles */
.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.05);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--leon-brown);
}

.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    padding-top: 24px;
    padding-bottom: 8px;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 16px;
    font-size: 16px;
    color: var(--gray-700);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 12px;
    color: var(--leon-brown);
}

.form-group select + label {
    top: -10px;
    left: 15px;
    background: var(--white);
    padding: 0 5px;
    font-size: 12px;
    color: var(--leon-brown);
}

.checkbox-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.checkbox-group label {
    position: static;
    font-size: 0.9rem;
    color: var(--gray-700);
    pointer-events: auto;
}

.checkbox-group a {
    color: var(--leon-brown);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray-700);
    text-align: center;
    margin-top: 20px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 80px 0 30px;
}

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

.footer-section h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--leon-brown-light);
}

.footer-logos {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-top: 15px;
}

.footer-logos img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-logos img:hover {
    opacity: 1;
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(270deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--gray-300);
}

/* ========================================
   COOKIE BANNER
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--leon-brown-light);
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .section-title {
        font-size: 3rem;
    }
    
    .brand-name {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --container-padding: 20px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        margin-bottom: 50px;
    }
    
    .brand-name {
        font-size: 2.5rem;
    }
    
    .brand-sub {
        font-size: 1.5rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2rem;
    }
    
    .brand-sub {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .service-card {
        padding: 35px 25px;
    }
    
    .testimonial-card {
        padding: 30px 25px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
