/* CSS Variables for Minimalist Light Palette */
:root {
    --bg-color: #FAFAF9; /* Off-white/pearl background */
    --text-main: #27272A; /* Dark charcoal text */
    --text-muted: #52525B; /* Lighter charcoal for paragraphs */
    --accent-color: #3F3F46; /* Almost black for buttons */
    --accent-hover: #18181B; /* Pure black on hover */
    --border-color: #E4E4E7; /* Light gray for borders */
    --card-bg: #FFFFFF; /* Pure white for cards */
}

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

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

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #FFFFFF;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 20px;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links li a:hover {
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img,
.hero-image video {
    width: 100%;
    max-width: 400px; /* Un poco más pequeño como solicitó el usuario */
    aspect-ratio: 4 / 5; /* Formato fijo para que nunca cambie de tamaño */
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    object-fit: cover; /* Asegura que el video llene el cuadro sin deformarse */
    background-color: #000; /* Fondo negro por si hay transición */
}

/* Shared Section Styles */
section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

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

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

/* Services */
.services-section {
    background-color: var(--card-bg);
}

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

.service-card {
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Soft dark filter overlay */
    z-index: 0;
}

.service-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85); /* Light glass effect */
    backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.service-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Blanks Section */
.blanks-section {
    background-color: var(--bg-color);
}

.blanks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.blank-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blank-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.blank-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Image Slide Dropdown Effect */
.blank-image-container {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), margin-top 0.4s ease;
}

.blank-image-container img {
    width: 100%;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.blank-card:hover .blank-image-container {
    max-height: 250px;
    opacity: 1;
    margin-top: 20px;
}

/* Why Choose Us Section */
.why-us-section {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.why-us-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.why-us-text {
    flex: 1;
}

.why-us-text h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.why-us-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-main);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.benefits-list li:last-child {
    border-bottom: none;
}

/* Parallax Section (Idea 3) */
.parallax-section {
    position: relative;
    background-attachment: fixed; /* Esto es lo que permite el efecto parallax! */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.why-us-content-parallax {
    max-width: 800px;
    z-index: 2;
}

.why-us-content-parallax h2 {
    color: #FFFFFF;
    font-size: 3rem;
    margin-bottom: 24px;
}

.why-us-content-parallax p {
    color: #E4E4E7;
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.parallax-list {
    list-style: none;
    text-align: left;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.parallax-list li {
    font-size: 1.1rem;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 0;
}

.parallax-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (max-width: 900px) {
    .parallax-section {
        background-attachment: scroll; /* Disable fixed attachment on mobile to avoid iOS bugs */
    }
}

/* Floating Testimonial */
.floating-testimonial {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 320px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 999;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.floating-testimonial.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.floating-testimonial .stars {
    color: #F59E0B; /* Muted Gold */
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.floating-testimonial p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.5;
}

.floating-testimonial h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
}

/* Portfolio Gallery (20 Images) */
.portfolio-section {
    background-color: var(--bg-color);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1; /* Force square crops for consistency */
    background-color: var(--card-bg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the square without distortion */
    object-position: center;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08); /* Zoom effect on hover */
}

/* FAQ Section */
.faq-section {
    background-color: var(--card-bg);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item-whatsapp {
    grid-column: 1 / -1;
    background-color: transparent;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #25D366; /* WhatsApp Green */
    color: #25D366;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item-whatsapp h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: inherit;
}

.faq-item-whatsapp p {
    font-size: 1.05rem;
    color: inherit;
}

.faq-item-whatsapp:hover {
    background-color: #25D366;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

/* Quote Section */
.quote-section {
    background-color: var(--card-bg);
    display: flex;
    justify-content: center;
}

.quote-container {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.quote-container h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.quote-container p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.quote-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: var(--bg-color);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.file-upload {
    margin-top: 10px;
    padding: 20px;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    text-align: center;
    background-color: var(--bg-color);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -8px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Footer */
footer {
    background-color: var(--bg-color);
    padding: 40px 5%;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto; /* 5% from the top and centered */
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 900px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent-hover);
    text-decoration: none;
    cursor: pointer;
}

.portfolio-modal-content {
    background-color: #18181B; /* Dark matching striking color */
    border: 1px solid #3F3F46;
    color: #FFFFFF;
    max-width: 1100px;
}
.portfolio-modal-content .close-btn {
    color: #A1A1AA;
}
.portfolio-modal-content .close-btn:hover {
    color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none; /* simple mobile hide for now */
    }

    .why-us-content {
        flex-direction: column;
    }

    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }
}
