/* ============================================
   RADICAL DESENTUPIDORA - STYLESHEET
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #E63946;
    --secondary-color: #1D3557;
    --accent-color: #457B9D;
    --light-bg: #F1FAEE;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    --transition: all 0.3s ease;
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

h5 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #D62828;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-img {
    height: 50px;
    width: 50px;
}

.logo-text {
    font-family: var(--font-secondary);
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
}

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

.hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: block;
    object-fit: cover;
}

/* ============================================
   IMAGES - RESPONSIVE
   ============================================ */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.intro-img,
.content-img,
.tech-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    object-fit: cover;
    display: block;
}

.intro-image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.intro-image-text .intro-img {
    margin: 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tech-item .tech-image {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.tech-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 60px 0;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-title h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* ============================================
   SERVICES OVERVIEW
   ============================================ */

.services-overview {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */

.why-choose {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--light-bg);
    border-radius: 5px;
    transition: var(--transition);
}

.feature:hover {
    box-shadow: var(--shadow);
}

.feature h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery {
    background-color: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(230, 57, 70, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    color: var(--secondary-color);
    cursor: pointer;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
}

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

.contact {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
}

.contact h2 {
    color: var(--white);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.services-section {
    padding: 60px 0;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.service-detail {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 10px;
}

.service-header {
    margin-bottom: 2rem;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.service-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.service-text h4 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process-section {
    background-color: var(--light-bg);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.blog-image {
    height: 300px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h4 {
    margin-top: 1.5rem;
}

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

.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    margin-left: 0;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.map-container {
    margin: 3rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.keywords-footer {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.keywords-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

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

.footer-bottom p {
    margin: 0.5rem 0;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 40px 0;
    }
    
    .page-title {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .blog-image {
        height: 200px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

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

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

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* ============================================
   EXTRA SMALL DEVICES (< 360px)
   ============================================ */

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .intro-img,
    .content-img,
    .tech-image {
        margin: 0.8rem 0;
        border-radius: 6px;
    }
    
    .service-card,
    .feature,
    .faq-item {
        padding: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 30px 0;
    }
    
    .gallery-item {
        height: 180px;
    }
}

/* ============================================
   RESPONSIVE IMAGE OPTIMIZATION
   ============================================ */

@media (max-width: 1024px) {
    .intro-image-text {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-img {
        border-radius: 8px;
    }
    
    .intro-img,
    .content-img,
    .tech-image {
        border-radius: 8px;
    }
}

/* ============================================
   MAP SECTION
   ============================================ */

.map-section {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.map-info {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.map-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.map-info p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.location-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.location-item {
    margin-bottom: 1.5rem;
}

.location-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.location-item p {
    margin: 0;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-wrapper {
        height: 300px;
    }
    
    .map-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .map-wrapper {
        height: 250px;
    }
    
    .map-info {
        padding: 1rem;
    }
    
    .map-info h3 {
        font-size: 1.2rem;
    }
}
