/* =============================================
   VARIABLES CSS
   ============================================= */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* =============================================
   RESET Y BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   HEADER Y NAVEGACIÓN
   ============================================= */
.header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
}

.navbar {
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
}

/* Logo Group - Marca Perú + Peru Textiles */
.logo-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

.marca-peru-logo {
    display: flex;
    align-items: center;
    /* Área de protección: espacio mínimo alrededor del logo según manual Marca Perú */
    padding: 8px;
}

.marca-peru-img {
    height: 90px; /* 2.38cm - logo prominente */
    width: auto;
    object-fit: contain;
    min-height: 38px; /* Tamaño mínimo absoluto: 1cm = ~38px */
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.2));
    transition: var(--transition);
}

.marca-peru-img:hover {
    filter: drop-shadow(0 4px 12px rgba(255,255,255,0.4));
    transform: scale(1.05);
}

.logo-divider {
    width: 2px;
    height: 90px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8), transparent);
    opacity: 0.6;
}

.peru-textiles-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.3));
    transition: var(--transition);
}

.logo-img:hover {
    filter: drop-shadow(0 4px 12px rgba(255,255,255,0.5));
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu li a {
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.9rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--white);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2c2c2c;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.9);
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

/* Botón de Llamada en header */
.call-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.call-btn i {
    font-size: 0.95rem;
}

.call-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Botón WhatsApp en header (ya no se usa pero se mantiene por si acaso) */
.whatsapp-btn {
    background: #25D366;
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Menú hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* =============================================
   HERO / BANNER
   ============================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

/* Hero con imagen de fondo (página inicio) */
.hero-home {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    background-color: #2c3e50; /* Color de respaldo mientras carga */
    background-image: url('../images/banner.avif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-background-size: cover; /* Safari/iOS específico */
}

/* Hero con imagen de fondo (página tejidos de punto) */
.hero-tejidos {
    position: relative;
    min-height: 500px;
    background-image: url('../images/tejidos-de-punto.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
}

/* Hero con imagen de fondo (página nuestras telas) */
.hero-nuestras-telas {
    position: relative;
    min-height: 500px;
    background-image: url('../images/nuestras-telas.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
}

/* Hero con imagen de fondo (página prendas) */
.hero-prendas {
    position: relative;
    min-height: 500px;
    background-image: url('../images/prendas.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
}

/* Hero con imagen de fondo (página exportaciones) */
.hero-exportaciones {
    position: relative;
    min-height: 500px;
    background-image: url('../images/exportaciones.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

/* Hero en desktop sin padding-top extra */
@media (min-width: 769px) {
    .hero-content {
        padding-top: 0;
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Hero Tags */
.hero-tags {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    z-index: 3;
    animation: fadeInUp 1.2s;
}

.hero-tags .tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-tags .tag:hover {
    background: rgba(52, 152, 219, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* =============================================
   SECCIONES
   ============================================= */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* =============================================
   GRID Y CARDS
   ============================================= */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-text {
    color: var(--text-light);
    line-height: 1.8;
    flex-grow: 1;
}

/* =============================================
   BOTONES
   ============================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 180px;
    height: 180px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--secondary-color);
}

/* Botones de redes sociales del CEO */
.ceo-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-btn i {
    font-size: 1.3rem;
}

.social-tiktok {
    background: linear-gradient(135deg, #000000 0%, #ee1d52 50%, #69c9d0 100%);
    color: white;
}

.social-tiktok:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(238, 29, 82, 0.4);
}

.social-instagram {
    background: linear-gradient(135deg, #405de6 0%, #5851db 25%, #833ab4 50%, #c13584 75%, #e1306c 100%);
    color: white;
}

.social-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(193, 53, 132, 0.4);
}

/* Responsive para botones sociales */
@media (max-width: 480px) {
    .ceo-social-links {
        flex-direction: column;
    }
    
    .social-btn {
        justify-content: center;
    }
}

/* =============================================
   FOOTER BRANDING - DIGIN PERÚ
   ============================================= */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 2rem 0;
}

.footer-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

.footer-developer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.developer-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.developer-heart {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

.digin-brand {
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
}

.digin-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    border-radius: 50px;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.digin-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: var(--transition);
}

.digin-brand:hover .digin-logo {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.digin-brand:hover .digin-logo::before {
    left: 100%;
    transition: left 0.5s ease;
}

.digin-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.digin-brand:hover .digin-icon {
    transform: rotate(360deg);
}

.digin-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.digin-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.digin-tagline {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 3px;
}

/* Formulario de contacto */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =============================================
   CEO SECTION
   ============================================= */
.ceo-section {
    background: var(--bg-light);
}

.ceo-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.ceo-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.ceo-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ceo-info h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* =============================================
   TESTIMONIOS
   ============================================= */
.testimonial-card {
    text-align: center;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* =============================================
   ANIMACIONES
   ============================================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    /* Header con más padding en móvil */
    .header {
        padding: 1.5rem 0;
    }
    
    /* Logo Group Responsive */
    .logo-group {
        gap: 10px;
    }
    
    .nav-wrapper {
        max-width: 95%;
    }
    
    .marca-peru-logo {
        padding: 6px; /* Área de protección proporcional en móviles */
    }
    
    .marca-peru-img {
        height: 50px; /* Más grande que logo Styles en móvil */
        min-height: 38px; /* Nunca menor a 1cm */
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-divider {
        height: 50px;
    }
    
    .peru-textiles-text {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px;
        left: -100%;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
        padding: 2rem 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.05);
        border: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Fix para hero en móviles - background-attachment fixed no funciona en iOS */
    .hero-home,
    .hero-tejidos,
    .hero-nuestras-telas,
    .hero-prendas,
    .hero-exportaciones {
        height: 100vh;
        min-height: 100vh;
        min-height: -webkit-fill-available; /* Fix para Safari iOS */
    }
    
    .hero-home {
        padding: 0 20px; /* Solo padding lateral en móvil */
    }
    
    .hero-content {
        padding-top: 0; /* Sin padding extra, flexbox lo centra */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .ceo-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-branding {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-developer {
        justify-content: center;
    }
    
    .digin-logo {
        padding: 0.65rem 1.25rem;
    }
}

/* =============================================
   WHATSAPP FLOTANTE
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@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);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

