/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #E31C25; /* Red from logo */
    --secondary-color: #0F172A; /* Dark Blue/Black */
    --accent-color: #ECECEC; /* Light Grey */
    --text-color: #333333;
    --text-light: #F8FAFC;
    --white: #FFFFFF;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center { text-align: center; }
.text-highlight { color: var(--primary-color); }

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c41820;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(227, 28, 37, 0.3);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f0f0f0;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Section Common */
.section {
    padding: var(--spacing-lg) 0;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.separator {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.separator.align-left {
    margin: 0;
}

/* Header */
.header {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.logo img {
    height: 40px;
    border-radius: 5px; /* Slight rounded corners if logo is square */
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.header-btn {
    display: none; /* Show on scroll or larger screens if needed, mostly for mobile header simplification */
}

@media (min-width: 768px) {
    .header-btn { display: inline-block; padding: 0.5rem 1rem; font-size: 0.85rem;}
}

.mobile-menu-icon {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 0 60px; /* Top padding for fixed header, bottom for breathing room */
    background: url('../img/guincho-1.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Services Section */
.services {
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-color);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
}

/* About Section */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1 1 400px;
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1 1 400px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start; /* Aligns icon to top when text wraps */
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.feature-list i {
    color: var(--primary-color);
    margin-top: 5px; /* Visual correction for flex-start alignment */
    min-width: 20px; /* Ensures icon doesn't shrink */
    text-align: center;
}

/* Gallery Section */
.gallery {
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 1rem;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    flex: 1 1 300px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px; /* Fixed width for alignment */
    text-align: center;
}

.info-item h4 {
    margin-bottom: 0.3rem;
    color: var(--secondary-color);
}

.info-item p, .info-item a {
    color: #666;
    font-size: 0.95rem;
}

.info-item a:hover {
    color: var(--primary-color);
}

.map-container {
    flex: 1 1 400px;
    min-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #eee;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #cbd5e1;
    padding: 3rem 0;
    border-top: 4px solid var(--primary-color);
}

.footer-logo img {
    height: 50px;
    margin: 0 auto 1.5rem;
}

.footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
}

/* Mobile Nav Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin: 1.5rem 0;
}

.mobile-nav-list a {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.close-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
}

/* Animations Helpers */
.fade-in, .fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }

.fade-in.visible, .fade-in-up.visible, .fade-in-left.visible, .fade-in-right.visible {
    opacity: 1;
    transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* FAQ Section */
.faq-section {
    background-color: #f9f9f9;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-details {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-details:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-color);
}

.faq-details[open] {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.faq-summary {
    font-weight: 700;
    color: var(--secondary-color);
    list-style: none; /* Hide default arrow */
    position: relative;
    padding-right: 20px;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-details[open] .faq-summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-content {
    margin-top: 1rem;
    color: #555;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-icon { display: block; color: var(--white); }
    
    .hero h1 { font-size: 2rem; }
    .hero-content { padding: 0 1rem; text-align: center; }
    .hero-buttons { justify-content: center; }

    .about-container { flex-direction: column-reverse; gap: 2rem; }
    
    .section-header h2 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
    .container { 
        width: 90%; 
        max-width: 1200px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .section {
        padding: 5rem 0;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1350px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .services-grid, .gallery-grid {
        gap: 2.5rem;
    }
    
    .service-card {
        padding: 2.5rem;
    }
}
