/*
Theme Name: Dulceiberica Theme
Theme URI: https://dulceiberica.com
Author: Antigravity
Author URI: https://dulceiberica.com
Description: Plantilla oficial para Dulceiberica. Diseño moderno, premium y totalmente optimizado para móviles.
Version: 1.0
Text Domain: dulceiberica
*/

/* CSS Reset and Variables */
:root {
    --primary-blue: #1b3671;
    --secondary-blue: #6cb4dd;
    --neutral-grey: #8e8e8f;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

h2 {
    font-size: 2.5rem;
}

p {
    margin-bottom: 1rem;
}

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

.section-padding {
    padding: 5rem 0;
}

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

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

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

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

/* Header & Nav */
.header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--primary-blue);
}

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

.logo {
    max-height: 50px;
    display: block;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

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

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(27, 54, 113, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg_4.png'); /* Ruta actualizada para WP */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 54, 113, 0.85) 0%, rgba(108, 180, 221, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Intro Statement */
.intro .lead-text {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--primary-blue);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Sections Common */
.section-badge {
    display: inline-block;
    color: var(--secondary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--secondary-blue);
    margin-bottom: 20px;
    border-radius: 2px;
}

.divider.center {
    margin: 0 auto 20px auto;
}

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

.section-title {
    font-size: 2.5rem;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--neutral-grey);
}

/* About Us (Split Layout) */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    position: relative;
}

.image-placeholder {
    background-color: var(--secondary-blue);
    border-radius: 10px;
    height: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background-image: url('assets/partnership_male.png'); /* Ruta actualizada para WP */
    background-size: cover;
    background-position: center;
}

.decor-circle {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    opacity: 0.8;
}

/* Value Prop (Cards) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--secondary-blue);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(108, 180, 221, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.icon-wrapper svg {
    width: 30px;
    height: 30px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Catalog Section */
.catalog-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.catalog-logo-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #eaeaea;
}

.catalog-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--secondary-blue);
    border: 2px solid var(--secondary-blue);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

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

/* Why Us */
.why-us {
    background-color: var(--primary-blue);
    background-image: linear-gradient(135deg, var(--primary-blue) 0%, #11234a 100%);
    position: relative;
}

.why-us .large-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
}

.highlight-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary-blue);
    padding: 30px;
    border-radius: 0 8px 8px 0;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--light-bg);
    padding: 30px 0;
    border-top: 1px solid #eaeaea;
}

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

.footer-logo {
    max-height: 40px;
    opacity: 0.8;
}

.footer-slogan {
    color: var(--neutral-grey);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Animations */
.fade-in { opacity: 0; transition: opacity 0.8s ease; }
.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: all 0.8s ease; }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: all 0.8s ease; }

.visible { opacity: 1; transform: translate(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; padding: 10px 0; }
    .nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; }
    .nav a { font-size: 0.9rem; }
    .btn-primary { padding: 8px 16px; font-size: 0.9rem; }
    
    .hero { height: 60vh; min-height: 400px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .section-padding { padding: 3rem 0; }
    .section-title { font-size: 1.8rem; }
    .intro .lead-text { font-size: 1.3rem; }
    .why-us .large-text { font-size: 1.1rem; }
    
    .split-layout { flex-direction: column; gap: 2rem; }
    .split-image { width: 100%; }
    .image-placeholder { height: 250px; }
    .decor-circle { width: 100px; height: 100px; bottom: -30px; right: -30px; }
    
    .cards-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 2rem; }
    
    .footer-content { flex-direction: column; text-align: center; gap: 15px; }
}
