/* Estilos generales */
:root {
    --bg: #f3f6f9;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --brand: #ffaa00;
    --brand-hover: #e69a00;
    --radius: 12px;
    --shadow: 0 10px 25px rgba(0, 0, 0, .08);
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --error-color: #991b1b;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --success-color: #065f46;
    --info-bg: #e0f7fa;
    --info-border: #b2ebf2;
    --info-color: #00796b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
}

.wrap {
    max-width: 1100px;
    margin: 32px auto;
    padding: 24px;
}

/* Estilos para la marca */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.brand img {
    width: 100%;
    max-width: 120px; /* Cambiar el tamaño máximo para dispositivos más grandes */
    height: auto;
    object-fit: contain;
}

.brand h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 2px;
    font-weight: 800;
}

/* Estilos para el formulario */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.card h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

/* Flexbox para el formulario */
.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.field {
    flex: 1;
    min-width: 220px;
}

.email-field {
    display: flex;
    flex-direction: column;
    flex: 2;
}


input[type="email"],
input[type="text"]{
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    outline: none;
    font-size: 16px;
}

input[type="email"]:focus,
input[type="text"]:focus{
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}


button {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    background: var(--brand);
    color: #111827;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(255, 170, 0, .35);
    transition: background-color 0.3s ease;
    max-width: 160px;
}

button:hover {
    background: var(--brand-hover);
}

/* Estilo para el cuerpo del correo */
.correo-body {
    background-color: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    word-wrap: break-word; /* Evitar que se desborde el texto */
    overflow: hidden; /* Asegura que no haya desbordamiento */
    max-width: 100%;  /* Asegura que el contenido no exceda el ancho del contenedor */
    box-sizing: border-box; /* Asegura que el padding no cause desbordamiento */
}

.correo-body img,
.correo-body table {
    max-width: 100%; /* Asegura que las imágenes y tablas no se desborden */
    height: auto; /* Mantiene la proporción de las imágenes */
    display: block; /* Elimina los espacios indeseados alrededor de las imágenes */
}

/* Evitar el desbordamiento horizontal en el contenedor */
body, .wrap {
    overflow-x: hidden;  /* Evitar el desbordamiento horizontal */
}

/* También aseguramos que las tablas dentro del correo no se desborden */
.correo-body table {
    width: 100%;
    table-layout: fixed; /* Asegura que las tablas se ajusten al tamaño del contenedor */
    border-collapse: collapse; /* Elimina el espacio entre celdas */
}

.correo-body td, .correo-body th {
    padding: 8px;
    word-wrap: break-word; /* Asegura que las celdas de la tabla no se desborden */
}

/* Estilos de alerta (mensaje de error o éxito) */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-weight: 600;
}

.alert.ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert.info {
    background: #e0f7fa;
    border: 1px solid #b2ebf2;
    color: #00796b;
}

/* Estilo de los correos */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin-bottom: 20px;
}

pre {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}


/* Media queries para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 20px;
    }

    .email-field {
        flex: 1;
    }

    button {
        width: 100%;
        padding: 14px;
        font-size: 18px;
    }

    .card {
        padding: 16px;
    }

    .brand h1 {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .brand {
        flex-direction: column;
        gap: 10px;
    }

    .brand h1 {
        font-size: 20px;
    }

    .card {
        padding: 12px;
    }
}
@media screen and (min-width: 1024px) {
    .brand img {
        max-width: 150px; /* Ajusta este valor para un tamaño mayor */
    }

    .brand h1 {
        font-size: 32px; /* Ajusta también el tamaño del texto si es necesario */
    }
}
