/*
Theme Name: EcoMetales Theme
Theme URI: https://www.ecometales.com
Description: Tema moderno y profesional para EcoMetales S.A. - Recicladora de metales con diseño contemporáneo
Author: EcoMetales Team
Author URI: https://www.ecometales.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecometales
*/

/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary-color: #0891b2;
    --dark-color: #1f2937;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

/* ===== UTILIDADES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

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

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ===== HEADER (estilo slider original) ===== */
/* Los estilos del header están en slider-original.css */

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

.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 0; /* la imagen será edge-to-edge; contenido con su propio padding */
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.card-image {
    width: 100%;
    height: 220px;
    margin: 0; /* quitar márgenes negativos para alinear con bordes */
    overflow: hidden;
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* ocupa todo el ancho/alto del contenedor */
    transition: transform 0.3s ease;
}

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

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

/* Padding del contenido textual de la tarjeta */
.card > .card-title,
.card > .card-text {
    padding: 0 1.5rem;
}

.card > .card-title { margin-top: 1.25rem; }
.card > .card-text { padding-bottom: 1.5rem; }

.card-text {
    color: var(--gray-600);
    line-height: 1.8;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 165, 0, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 140, 0, 0.7), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 200, 0, 0.6), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 100, 0, 0.9), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 165, 0, 0.7), transparent),
        radial-gradient(1px 1px at 15% 90%, rgba(255, 180, 0, 0.5), transparent),
        radial-gradient(2px 2px at 35% 40%, rgba(255, 120, 0, 0.8), transparent);
    background-size: 200% 200%;
    animation: sparkles 3s ease-in-out infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes sparkles {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 100% 0%, 25% 75%, 75% 25%;
        opacity: 0.2;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 75% 25%, 100% 0%, 0% 100%, 50% 50%, 25% 75%;
        opacity: 0.4;
    }
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-section .section-title {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.about-section .about-text h3 {
    color: var(--primary-light) !important;
}

.about-section .about-text p {
    color: rgba(255, 255, 255, 0.9);
}

/* Grid de dos columnas para About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        padding-right: 0;
    }
}

/* ===== FEATURE OF DESIGN SECTION (Copiado exactamente de main) ===== */
.feature-of-design::before {
  position: absolute;
  left: 0;
  content: "";
  background-image: url(assets/images/feature-design/icon_background.svg);
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  background-position: top;
  top: 0px;
  z-index: -1;
}
.feature-of-design .img-bg-overlay::before {
  position: absolute;
  left: 0;
  top: 90px;
  content: "";
  background: linear-gradient(180deg, #FF7342 0%, rgba(255, 115, 66, 0) 100%);
  opacity: 0.5;
  filter: blur(213px);
  height: 75%;
  width: 75%;
  background-repeat: no-repeat;
  z-index: -1;
}
.feature-of-design h1, .feature-of-design .h1 {
  color: #061434;
  line-height: 85px;
}
.feature-of-design h1 .highlight-hero-title, .feature-of-design .h1 .highlight-hero-title {
  background-color: #F35C29;
  color: #061434;
  background: rgba(243, 92, 41, 0.22);
  border: 4px dashed #F35C29;
  padding: 0px 10px;
  justify-content: center;
  margin: 0 auto 5px;
}
.feature-of-design h1 .highlight-hero-title:after, .feature-of-design .h1 .highlight-hero-title:after {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  background-color: #F35C29;
  top: -8px;
  right: -8px;
}
.feature-of-design h1 .highlight-hero-title:before, .feature-of-design .h1 .highlight-hero-title:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  background-color: #F35C29;
  top: -8px;
  left: -8px;
}
.feature-of-design h1 .highlight-hero-title .highlight-hero-title-inner:before, .feature-of-design .h1 .highlight-hero-title .highlight-hero-title-inner:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  background-color: #F35C29;
  bottom: -8px;
  left: -8px;
}
.feature-of-design h1 .highlight-hero-title .highlight-hero-title-inner:after, .feature-of-design .h1 .highlight-hero-title .highlight-hero-title-inner:after {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  background-color: #F35C29;
  bottom: -8px;
  right: -8px;
}
.feature-of-design h1 .team, .feature-of-design .h1 .team {
  right: -32%;
  top: 60px;
  text-align: center;
  line-height: initial;
}
.feature-of-design h1 .team img, .feature-of-design .h1 .team img {
  height: 20px;
  width: 20px;
}
.feature-of-design h1 .team .btn, .feature-of-design .h1 .team .btn {
  padding: 5px 20px;
  font-size: 14px;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  margin-left: 25px;
  margin-top: -7px;
}
.feature-of-design p {
  color: #8A8A8A;
  font-family: "DM Sans", sans-serif;
}

/* Responsive para Feature of Design */
@media (max-width: 768px) {
  .feature-of-design h1, .feature-of-design .h1 {
    line-height: 55px;
  }
  .feature-of-design h1 .team, .feature-of-design .h1 .team {
    right: -50%;
    top: 40px;
  }
  .feature-of-design .img-bg-overlay {
    padding-top: 30px;
  }
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, var(--white), var(--gray-100));
    border-radius: 1rem;
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.service-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

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

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    padding: 1.5rem 2rem;
    margin: 0;
}

/* ===== MATERIALS SECTION ===== */
.materials-section {
    background: var(--gray-900);
    color: var(--white);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.material-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 2px solid transparent;
}

.material-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.material-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.material-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0;
}

/* Responsive para materiales */
@media (max-width: 1200px) {
    .materials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .material-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .materials-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ===== CONTACT FORM ===== */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-column {
    text-align: left;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    display: inline-block;
    max-width: 200px;
    transition: var(--transition);
}

.footer-logo img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.footer-secondary-image {
    margin-top: 0;
    max-width: 140px;
    display: inline-block;
}

.footer-secondary-image img {
    width: 111%;
    height: auto;
    max-height: 130px;
    object-fit: contain;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0;
    font-size: 0.95rem;
}

.footer-text a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-text a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-meta {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    font-style: italic;
}

.footer-copyright {
    text-align: center;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: none;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cards-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
        display: block;
    }
    
    .footer-secondary-image {
        margin: 1rem auto 0;
        display: block;
    }
    
    .footer-title {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .footer-subtitle {
        justify-content: center;
    }
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

