:root {
    --primary-color: #ff4500;
    --secondary-color: #1a1a1a;
    --background-color: #f4f4f4;
    --text-color: #333;
    --light-gray: #e0e0e0;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #333 100%);
    color: white;
    min-height: 80vh;
}
.hero-content { max-width: 50%; }
.main-headline {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.sub-headline { font-size: 1.2rem; margin-bottom: 40px; }
.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}
.cta-button:hover { background-color: #e03e00; transform: translateY(-3px); }
.hero-image { max-width: 45%; }
.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: rotate(3deg);
    transition: transform 0.5s, cursor 0.3s;
}
.hero-image img:hover { transform: rotate(0deg) scale(1.05); }

/* Features Section */
.features-section { padding: 80px 0; background-color: white; }
.section-title {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 60px;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.feature-item { text-align: center; padding: 20px; border-radius: 10px; transition: transform 0.3s, box-shadow 0.3s; }
.feature-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.feature-icon { width: 160px; height: 160px; margin-bottom: 20px; border-radius: 8px; object-fit: cover; }
.feature-item h3 { font-family: var(--font-secondary); font-size: 1.5rem; margin-bottom: 10px; }

/* Purchase Section */
.purchase-section { padding: 80px 0; }
.purchase-content { display: flex; align-items: center; gap: 60px; }
.product-images { display: flex; gap: 20px; flex: 1; }
.product-image { width: 50%; border-radius: 10px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); transition: transform 0.4s; }
.product-image:hover { transform: scale(1.05); }
.purchase-details { flex: 1; }
.price { font-size: 2.8rem; font-weight: bold; color: var(--primary-color); margin-bottom: 20px; }
.product-description { font-size: 1.1rem; margin-bottom: 30px; }
.order-controls { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.order-controls label { font-weight: bold; font-size: 1.1rem; }
.order-controls input { width: 60px; padding: 12px; border: 1px solid var(--light-gray); border-radius: 5px; font-size: 1rem; text-align: center; }

/* --- CORRECCIÓN PARA MODALES --- */
/* Clases únicas para evitar conflictos */

/* Modal de Formulario (CARRITO) */
.order-modal-backdrop {
    display: none; 
    position: fixed; 
    z-index: 1001;
    left: 0; top: 0; 
    width: 100%; height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
.order-modal-content {
    background-color: #fff; 
    margin: auto; 
    padding: 30px;
    width: 90%; 
    max-width: 500px; 
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); 
    position: relative;
}
.close-button {
    color: #aaa; 
    position: absolute; 
    top: 10px; 
    right: 20px;
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer;
}
.close-button:hover { color: black; }
.order-modal-content h2 { font-family: var(--font-secondary); text-align: center; margin-bottom: 20px; }
.order-summary { margin-bottom: 25px; font-size: 1.1rem; }
.order-summary p { margin: 10px 0; }
.order-summary .price { font-size: 1.5rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input { width: 100%; padding: 12px; border: 1px solid var(--light-gray); border-radius: 5px; box-sizing: border-box; }
#phpMailerForm .cta-button { width: 100%; font-size: 1.1rem; }


/* Modal de Imagen (AMPLIAR) */
.modal-trigger { cursor: pointer; }
.image-modal-backdrop {
    display: none; 
    position: fixed; 
    z-index: 1002;
    left: 0; top: 0; 
    width: 100%; height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
}
.image-modal-content {
    margin: auto; 
    display: block; 
    width: 80%;
    max-width: 700px; 
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.image-modal-close {
    position: absolute; 
    top: 15px; right: 35px;
    color: #f1f1f1; 
    font-size: 40px; 
    font-weight: bold;
    cursor: pointer; 
    transition: 0.3s;
}
.image-modal-close:hover { color: #bbb; }


/* Botón de WhatsApp (CORREGIDO) */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}
.whatsapp-button:hover {
    transform: scale(1.1);
}
.whatsapp-button img {
    width: 35px; /* Tamaño explícito para el icono */
    height: 35px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color); color: white;
    text-align: center; padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-content, .hero-image { max-width: 100%; }
    .hero-image { margin-top: 40px; }
    .main-headline { font-size: 2.5rem; }
    .purchase-content { flex-direction: column; }
    .order-modal-content { width: 90%; margin: 20% auto; }
}
/* ============================================= */
/* ===== ESTILOS PARA LA PÁGINA DE GRACIAS ===== */
/* ============================================= */

/* 1. Preparamos el cuerpo de la página para centrar el contenido */
.thank-you-page {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;    /* Centra verticalmente */
    min-height: 100vh;      /* Asegura que ocupe toda la altura de la pantalla */
    background-color: var(--background-color); /* Usa el fondo gris de tu diseño */
}

/* 2. Creamos el efecto de "tarjeta" para el contenedor */
.thank-you-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Sombra suave */
    text-align: center;
    max-width: 550px; /* Ancho máximo para que no sea muy grande en pantallas anchas */
    margin: 20px; /* Un pequeño margen para pantallas móviles */
}

/* 3. ¡LA CORRECCIÓN PRINCIPAL! Le damos un tamaño fijo al icono */
.success-icon {
    width: 90px;  /* Ancho fijo para el contenedor del icono */
    height: 90px; /* Alto fijo */
    margin: 0 auto 20px; /* Centra el icono y le da espacio debajo */
}

/* Hacemos que el SVG se ajuste a su contenedor */
.success-icon svg {
    width: 100%;
    height: 100%;
}

/* 4. Ajustes finales para el texto y el botón */
.thank-you-container p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555; /* Un color de texto un poco más suave */
    margin-bottom: 30px;
}

.thank-you-container .cta-button {
    display: inline-block; /* Asegura que el botón se comporte correctamente */
}