/* ========================================
   MODERN CSS RESET & CUSTOM PROPERTIES
   ======================================== */

/* Screen Reader Only - for accessibility and SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
}

:root {
    /* Brand Colors */
    --primary-yellow: #FFC300;
    --primary-red: #DC143C;
    --accent-yellow: #FFD60A;
    --accent-red: #FF6B6B;

    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #F5F5F5;
    --gray: #6B7280;
    --dark-gray: #374151;
    --almost-black: #1F2937;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-red) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(255, 195, 0, 0.1) 0%, rgba(220, 20, 60, 0.1) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    background-color: var(--off-white);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: clamp(0.938rem, 2vw, 1.125rem);
    line-height: 1.7;
}

/* ========================================
   HEADER
   ======================================== */

header {
    background: var(--gradient-primary);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.title {
    color: var(--white);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
}

.tagline {
    color: var(--white);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 300;
    margin-top: var(--spacing-sm);
    opacity: 0.95;
}

/* ========================================
   SECTIONS
   ======================================== */

section {
    padding: var(--spacing-2xl) var(--spacing-md);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.subtitle {
    text-align: center;
    color: var(--almost-black);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    width: 100%;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

.section-description {
    text-align: center;
    color: var(--gray);
    margin-bottom: var(--spacing-xl);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* ========================================
   ABOUT US SECTION
   ======================================== */

#about-us .container {
    background-image: linear-gradient(0deg, rgba(31, 41, 55, 0.85), rgba(31, 41, 55, 0.75)), url("img/placa-2.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
}

#about-us .specialized {
    font-size: clamp(1.125rem, 3vw, 1.75rem);
    line-height: 1.8;
    color: var(--white);
    font-weight: 300;
    text-align: center;
    max-width: 800px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

#our-services {
    background-color: var(--white);
}

#our-services .services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

#our-services .card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#our-services .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-yellow);
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-xl);
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
}

#our-services .card:hover .icon-wrapper {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

#our-services .icons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    transition: all var(--transition-base);
    color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#our-services .card:hover .icons {
    color: var(--white);
}

#our-services h3 {
    color: var(--almost-black);
    margin-bottom: var(--spacing-sm);
}

#our-services p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   WHY US SECTION
   ======================================== */

#why-us {
    background-color: var(--white);
}

#why-us .benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.benefit-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-red);
    transition: all var(--transition-base);
}

.benefit-item:hover .benefit-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.benefit-item:hover .benefit-icon svg {
    color: var(--white);
}

.benefit-item h3 {
    color: var(--almost-black);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.benefit-item p {
    color: var(--gray);
    font-size: 1rem;
}

/* ========================================
   WARRANTY SECTION
   ======================================== */

#warranty {
    position: relative;
}

#warranty .container {
    background-image: linear-gradient(135deg, rgba(220, 20, 60, 0.9), rgba(255, 195, 0, 0.9)), url("img/soldadura.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-blend-mode: multiply;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
}

.warranty-content {
    text-align: center;
    max-width: 700px;
}

#warranty .subtitle {
    color: var(--white);
}

#warranty .subtitle::after {
    background: var(--white);
}

#warranty .text {
    color: var(--white);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    line-height: 1.8;
    margin-top: var(--spacing-lg);
    font-weight: 400;
}

#warranty .text-small {
    color: var(--white);
    font-size: clamp(0.938rem, 2vw, 1.125rem);
    margin-top: var(--spacing-md);
    opacity: 0.9;
}

/* ========================================
   LOCATION SECTION
   ======================================== */

#our-location {
    background-color: var(--white);
}

#our-location .location {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

#our-location .details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.address-info {
    background: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-yellow);
}

.address-info p {
    margin-bottom: var(--spacing-xs);
}

.address {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.address:hover {
    color: var(--accent-red);
}

.reference {
    color: var(--gray);
    font-size: 0.938rem;
    font-style: italic;
}

.btn-address {
    text-decoration: none;
    display: inline-block;
}

.btn-maps {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    font-family: 'Poppins', sans-serif;
}

.btn-maps:hover {
    background: var(--primary-yellow);
    color: var(--almost-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    width: 24px;
    height: 24px;
    color: currentColor;
}

.schedule {
    background: var(--gradient-soft);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.schedule-title {
    color: var(--almost-black);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.schedule-items p {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.img-container {
    background-image: linear-gradient(
        135deg,
        rgba(255, 195, 0, 0.1),
        rgba(220, 20, 60, 0.1)
    ), url("img/local.jpeg");
    background-size: cover;
    background-position: center;
    min-height: 300px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

#contact {
    background: var(--gradient-soft);
}

#contact .comunication {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contact-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.contact-card h3 {
    color: var(--almost-black);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.number {
    text-decoration: none;
    display: block;
}

.contact-value {
    color: var(--primary-red);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.number:hover .contact-value {
    color: var(--accent-red);
}

.contact-card a {
    text-decoration: none;
}

.contact-info {
    color: var(--gray);
    font-size: 0.938rem;
    margin-top: var(--spacing-sm);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    margin: var(--spacing-md) auto 0;
    font-family: 'Poppins', sans-serif;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: var(--almost-black);
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-main {
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

.footer-text {
    color: var(--gray);
    font-size: 0.938rem;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (min-width: 768px) {
    section {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    #about-us .container {
        min-height: 450px;
    }

    #our-location .location {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .img-container {
        min-height: 450px;
    }
}

@media (min-width: 1024px) {
    #about-us .container {
        min-height: 500px;
    }

    #our-services .services {
        grid-template-columns: repeat(4, 1fr);
    }

    .img-container {
        min-height: 500px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}
