/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

:root {
    --brand-yellow: #D8A03D;
    --text-dark: #111;
    --text-muted: #666;
}

/* BODY */
body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: var(--text-dark);
    line-height: 1.6;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo:hover {
    color: var(--brand-yellow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--brand-yellow);
}

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* CTA */
.nav-cta {
    background: var(--brand-yellow);
    color: white !important;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-cta:hover {
    transform: scale(1.05);
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 120%;
    left: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    display: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
}

.dropdown-content a:hover {
    background: #fafafa;
}

/* MAIN */
.main-content {
    margin-top: 70px;
}

/* HERO */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.02),
        rgba(0,0,0,0.02) 1px,
        transparent 1px,
        transparent 4px
    );
    transform: rotate(2deg);
    pointer-events: none;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 18px;
}

/* BUTTONS */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary {
    background: var(--text-dark);
    color: white;
    padding: 12px 25px;
    border-radius: 40px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--brand-yellow);
}

.btn-secondary {
    border: 1px solid #ddd;
    padding: 12px 25px;
    border-radius: 40px;
    text-decoration: none;
    color: var(--text-dark);
}

.btn-secondary:hover {
    border-color: var(--brand-yellow);
    color: var(--brand-yellow);
}

/* SECTIONS */
section {
    padding: 120px 0;
}

section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.materials.alt {
    background: #fafafa;
}

/* GRID */
.material-grid,
.process-grid,
.audience-grid,
.why-grid {
    display: grid;
    gap: 30px;
}

.material-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* CARDS */
.material-card,
.audience-card,
.why-card {
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: 0.3s ease;
    background: white;
}

.material-card:hover,
.audience-card:hover,
.why-card:hover {
    border-color: var(--brand-yellow);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

/* PROCESS */
.process-step span {
    color: var(--brand-yellow);
    font-weight: 600;
}

/* PORTFOLIO SLIDESHOW */
.portfolio-slideshow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 60px;
}

.slideshow-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.portfolio-slide {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    animation: fadeIn 0.5s ease-in-out;
}

.portfolio-slide.active {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.slide-card:hover {
    border-color: var(--brand-yellow);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.slide-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.slide-card h3 {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation arrows */
.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slide-prev {
    left: 0;
}

.slide-next {
    right: 0;
}

.slide-prev:hover,
.slide-next:hover {
    background: var(--brand-yellow);
    color: white;
    border-color: var(--brand-yellow);
    transform: translateY(-50%) scale(1.1);
}

.slide-prev svg,
.slide-next svg {
    pointer-events: none;
}

/* Dots indicator */
.slide-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #bbb;
}

.dot.active {
    background: var(--brand-yellow);
    width: 30px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-slide {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .portfolio-slideshow {
        padding: 10px 50px;
    }
    
    .portfolio-slide {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .slide-card img {
        height: 200px;
    }
    
    .slide-prev,
    .slide-next {
        width: 40px;
        height: 40px;
    }
}

/* CTA */
.cta {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 140px 0;
}

.cta p {
    color: #ccc;
}

.cta-button {
    background: var(--brand-yellow);
    padding: 14px 30px;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    display: inline-block;
    margin-top: 20px;
}

/* CONTACT PAGE */
.contact-section {
    padding: 120px 0 60px;
    background: #fff;
}

.contact-section h1 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 10px;
}

.contact-section .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--brand-yellow);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.contact-icon {
    color: var(--brand-yellow);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.contact-card a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--brand-yellow);
}

/* COMMERCIAL DATA SECTION */
.commercial-section {
    padding: 60px 0;
    background: #fafafa;
}

.commercial-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}

.commercial-info {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 40px;
}

.info-row {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-row:last-child {
    border-bottom: none;
}

.company-name {
    justify-content: center;
    font-size: 24px;
    color: var(--brand-yellow);
    border-bottom: 2px solid var(--brand-yellow);
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
}

.info-value {
    color: var(--text-muted);
    text-align: right;
}

/* MAP SECTION */
.map-section {
    padding: 60px 0;
    background: #fff;
}

.map-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.map-placeholder {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 80px;
    text-align: center;
    color: var(--text-muted);
}

.map-placeholder svg {
    color: var(--brand-yellow);
    margin-bottom: 20px;
}

.map-placeholder p {
    font-size: 16px;
    line-height: 1.8;
}

/* RESPONSIVE - Contact Page */
@media (max-width: 768px) {
    .contact-section h1 {
        font-size: 36px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .commercial-section h2,
    .map-section h2 {
        font-size: 28px;
    }
    
    .commercial-info {
        padding: 25px;
    }
    
    .company-name {
        font-size: 18px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-value {
        text-align: left;
    }
    
    .map-placeholder {
        padding: 40px 20px;
    }
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

/* ANIMATION */
.fade-in {
    opacity: 1;
    transform: none;
    transition: 0.8s;
}

.js-enabled .fade-in {
    opacity: 0;
    transform: translateY(40px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* OFERTA */
.oferta {
    padding: 120px 0;
    max-width: 700px;
    margin: auto;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* FORM */
.oferta-form input,
.oferta-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.oferta-form input:focus,
.oferta-form textarea:focus {
    outline: none;
    border-color: var(--brand-yellow);
}

/* ROW */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row input {
    flex: 1;
}

/* PROJECT TYPE */
.project-type {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.project-type label {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
}

.project-type input {
    margin-right: 8px;
}

/* UPLOAD */
.upload-box {
    border: 2px dashed #ddd;
    padding: 30px;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.upload-box:hover {
    border-color: var(--brand-yellow);
}

.upload-box input {
    display: none;
}

/* FILE PREVIEW */
.file-preview {
    margin-top: 15px;
}

.file-preview div {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 5px;
    font-size: 14px;
}

/* STATUS */
.status {
    margin-top: 15px;
    font-weight: 500;
}

/* SOCIAL MEDIA (Footer) */
.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-media a {
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
}

.social-media a:hover {
    color: var(--brand-yellow);
    background: rgba(216, 160, 61, 0.1);
    transform: translateY(-3px);
}

.social-media svg {
    width: 24px;
    height: 24px;
}

.footer p {
    margin: 0;
}

/* COMPLIANCE BUTTONS (Footer) */
.compliance-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.compliance-card {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 350px;
    transition: all 0.3s ease;
}

.compliance-card:hover {
    border-color: var(--brand-yellow);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.compliance-logo {
    flex-shrink: 0;
}

.anpc-logo {
    background: #003399;
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.compliance-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.compliance-text strong {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
}

.compliance-text span {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.compliance-btn {
    background: var(--text-dark);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.compliance-btn:hover {
    background: var(--brand-yellow);
    transform: scale(1.05);
}

/* Responsive for compliance buttons */
@media (max-width: 768px) {
    .compliance-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .compliance-card {
        max-width: 100%;
    }
}

/* ============================================ */
/* COMPREHENSIVE MOBILE RESPONSIVE STYLES */
/* ============================================ */

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
    .container {
        width: 92%;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    section {
        padding: 80px 0;
    }
    
    section h2 {
        font-size: 36px;
    }
}

/* Mobile landscape and tablets portrait */
@media (max-width: 900px) {
    /* Navigation */
    .navbar .container {
        padding: 0 5%;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .nav-cta {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* Dropdown */
    .dropdown-content {
        min-width: 180px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Typography */
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    section h2 {
        font-size: 32px;
    }
    
    /* Spacing */
    section {
        padding: 60px 0;
    }
    
    /* Navigation - Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px;
        gap: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        border: none;
        border-radius: 0;
        padding: 10px 0 10px 20px;
        background: #fafafa;
        margin-top: 10px;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .nav-cta {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
    
    /* Hero section */
    .hero {
        min-height: 70vh;
        padding: 40px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* Grids */
    .material-grid,
    .process-grid,
    .audience-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Cards */
    .material-card,
    .audience-card,
    .why-card {
        padding: 25px;
    }
    
    /* CTA Section */
    .cta {
        padding: 80px 20px;
    }
    
    .cta h2 {
        font-size: 28px;
    }
    
    /* Oferta Page */
    .oferta {
        padding: 80px 20px;
    }
    
    .oferta h1 {
        font-size: 32px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .project-type {
        flex-direction: column;
        gap: 12px;
    }
    
    .project-type label {
        width: 100%;
        text-align: center;
    }
    
    .upload-box {
        padding: 20px;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0;
    }
    
    .social-media {
        gap: 15px;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    /* Typography */
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    section h2 {
        font-size: 26px;
    }
    
    /* Logo */
    .logo {
        font-size: 20px;
    }
    
    /* Spacing */
    section {
        padding: 40px 0;
    }
    
    .container {
        width: 95%;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .nav-cta {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Cards */
    .material-card,
    .audience-card,
    .why-card {
        padding: 20px;
    }
    
    /* Contact Page */
    .contact-section h1 {
        font-size: 28px;
    }
    
    .commercial-section h2,
    .map-section h2 {
        font-size: 24px;
    }
    
    .commercial-info {
        padding: 20px;
    }
    
    /* Forms */
    .oferta-form input,
    .oferta-form textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Slideshow */
    .portfolio-slideshow {
        padding: 10px 45px;
    }
    
    .slide-prev,
    .slide-next {
        width: 35px;
        height: 35px;
    }
    
    .slide-card img {
        height: 180px;
    }
}

/* Extra optimizations for very small screens */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 24px;
    }
    
    section h2 {
        font-size: 22px;
    }
    
    .compliance-card {
        min-width: auto;
        padding: 12px 15px;
    }
    
    .compliance-text strong,
    .compliance-btn {
        font-size: 10px;
    }
}